Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5 ] Write unit tests: Identify at least five use cases based on your design task. Write unit tests that test your implementation against these
Write unit tests:
Identify at least five use cases based on your design task.
Write unit tests that test your implementation against these use
cases. We suggest simplifying the tests you choose by testing the
model, because testing the code with dependencies on a file and
terminal will require that the file or terminal be available at the time
that you run your tests. You cannot guarantee their availability, and
this would complicate your workflow. If you are interested in how
such tests are performed, you can read about mock testing and
integration testing in yourspare time
Use a tool like pip freeze to generate a requirementstxt file.Practical Task
In this practical task you are going to implement and test the task manager
application you designed in the Software Design Task.
Follow the steps below to complete the task. You do not have to provide written
answers to the questions, as they are meant to guide your thinking.
Set up a virtual ervironment for your project while considering the
following points:
What steps will you take to create a virtual environment for your
project?
Which tool or package will you use to manage the virtual
environment?
PEP Linting et up a PEP linter for your project, considering the below
points:
How will you integrate PEP linting into your project?
Are there specific PEP rules or configurations you want to enforce
orignore?
PEP Compliance:
Ensure that your code adheres to PEP standards
Make any necessary adjustments to achieve compliance.
Implement your task manager application following your design:
Develop the necessary classes based on your design. Feel free to
redesign the application to suit your implementation needs if you
have discovered design improvements during your implementation
phase.
Implement a filebased data access layer to support your application.
Remember to split your code into multiple modules. A common
practice is to have one class or set of related functions or constants
per Python module.
Write unit tests:
Identify at least five use cases based on your design task.
Write unit tests that test your implementation against these use
cases. We suggest simplifying the tests you choose by testing the
model, because testing the code with dependencies on a file and
terminal will require that the file or terminal be available at the time
that you run your tests. You cannot guarantee their availability, and
this would complicate your workflow. If you are interested in how
such tests are performed, you can read about mock testing and
integration testing in your spare time.
Use a tool like pip freeze to generate a requirements.txt file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started