ShoppingMall | A simple shopping mall implemented with Flask framework
kandi X-RAY | ShoppingMall Summary
kandi X-RAY | ShoppingMall Summary
A simple shopping mall implemented with Flask framework
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- return the result
- Create the Flask app .
- Display information about a user .
- Display a cart .
- Get post by id .
- Handle login .
- Update a post .
- Sort by category .
- Sort by name
- Create a new blog .
ShoppingMall Key Features
ShoppingMall Examples and Code Snippets
Community Discussions
Trending Discussions on ShoppingMall
QUESTION
i have the following method and need a Junit Test for it, but dont know how to start.i Hope that someone can help me.
...ANSWER
Answered 2020-May-24 at 14:55So normally you would take look at the class to see what it does. Apparently you have some kind of arrayList implementation with Shops. You are able to add shops to it.
The ShoppingMall is created with an initial size. You should test that. Test what happens if you call the constructor with an negative number or a very big number for example. Does the code do what you expect is should do ?
next, the addShops function has some logic you should test.
Take a break to think of some scenario's where it might not work. What do you expect to happen ? You can for example try to add more shops to the ShoppingMall than allowed. What should happen? Which shops should be added and which not ? What will the method return ?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ShoppingMall
You can use ShoppingMall like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page