Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
b6742a4668 |
10
main.py
Normal file
10
main.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
print("Main")
|
||||||
|
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
# Create TDBD Simulation Object, passing parameters.
|
||||||
|
# Run TDBD Simulation and obtain observation result.
|
||||||
|
# Create other simulation objects with parameters.
|
||||||
|
# Run other simulation and obtain observation result.
|
||||||
|
|
||||||
|
|
0
tdbd/__init__.py
Normal file
0
tdbd/__init__.py
Normal file
8
test_haocrowd.py
Normal file
8
test_haocrowd.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
loader = unittest.TestLoader()
|
||||||
|
start_dir = "./haocrowd/tests/"
|
||||||
|
suite = loader.discover(start_dir)
|
||||||
|
|
||||||
|
runner = unittest.TextTestRunner(verbosity=2)
|
||||||
|
runner.run(suite)
|
8
test_tdbd.py
Normal file
8
test_tdbd.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
loader = unittest.TestLoader()
|
||||||
|
start_dir = "./tests/"
|
||||||
|
suite = loader.discover(start_dir)
|
||||||
|
|
||||||
|
runner = unittest.TextTestRunner(verbosity=2)
|
||||||
|
runner.run(suite)
|
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()
|
Loading…
Reference in New Issue
Block a user