Initial Project Structure.
New: basic project structure. New: main.py script. New: basic unit tests and testing script.
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
17
tests/test_haocrowd_framework.py
Normal file
17
tests/test_haocrowd_framework.py
Normal file
@ -0,0 +1,17 @@
|
||||
import unittest
|
||||
|
||||
from haocrowd.core.base import SimulationBase
|
||||
|
||||
|
||||
class TestHaoCrowd(unittest.TestCase):
|
||||
def test_haocrowd_base(self):
|
||||
class TDBDSim(SimulationBase):
|
||||
def run(self) -> int:
|
||||
return 123
|
||||
|
||||
sim = TDBDSim()
|
||||
self.assertEqual(sim.run(), 123)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Reference in New Issue
Block a user