[ ] Create a file for the class implementation
with name src/pf_example/ThresholdConc.py,
e.g. src/pf_example/ThresholdConc.py
[x] Create a file for the class tests,
with name tests/test-ThresholdConc.py,
e.g. tests/test-ThresholdConc.py
[x] Create a minimal class implementation,
for example:
"""ThresholdConc."""
class ThresholdConc:
"""ThresholdConc holds the simulation's parameters for the concentration threshold for initiating a tumble."""
[ ] Create a minimal class test,
for example:
"""Tests all function in src.pf_example.ThresholdConc."""
import unittest
from src.pf_example.ThresholdConc import (
ThresholdConc,
)
class TestThresholdConc(unittest.TestCase):
"""Class to test the code in src.pf_example.ThresholdConc."""
def test_can_create_params(self):
"""#14: Can construct a ThresholdConc."""
ThresholdConc()
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 design document, the class in the title is mentioned. Create it!
Procedure
src/pf_example/ThresholdConc.py
, e.g.src/pf_example/ThresholdConc.py
tests/test-ThresholdConc.py
, e.g.tests/test-ThresholdConc.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.