In the class list, the class in the title
is mentioned. Create it!
Procedure
[x] Create a file for the class implementation
with name src/[module_name]/[class_name].py,
e.g. src/pfpa2023/duck.py
[x] Create a file for the class tests,
with name tests/test_[class_name].py,
e.g. tests/test_duck.py
[x] Create a minimal class implementation,
for example:
"""A duck."""
class Duck:
"""Duck is a duck."""
[x] Create a minimal class test,
for example:
"""Tests all function in src.pf_example.duck."""
import unittest
from src.pf_example.duck import (
Duck,
)
class TestDuck(unittest.TestCase):
"""Class to test the code in src.pf_example.duck."""
def test_can_create_params(self):
"""#[issue_number]: Can create a Duck."""
Duck()
The test is that it works, not that it does anything useful.
Use the workflow that fits you best,
ideally use a topic branch for this issue
and merge to develop using a PR with code review.
In the class list, the class in the title is mentioned. Create it!
Procedure
src/[module_name]/[class_name].py
, e.g.src/pfpa2023/duck.py
tests/test_[class_name].py
, e.g.tests/test_duck.py
The test is that it works, not that it does anything useful.
Use the workflow that fits you best, ideally use a topic branch for this issue and merge to develop using a PR with code review.