ogn-python/tests/model/all_classes.py

25 wiersze
535 B
Python
Czysty Zwykły widok Historia

import os
2017-10-03 10:59:45 +00:00
import unittest
2017-12-13 13:22:31 +00:00
import inspect
2017-10-03 10:59:45 +00:00
os.environ['OGN_CONFIG_MODULE'] = 'config/test.py'
import ogn_python.model # noqa: E402
2017-10-03 10:59:45 +00:00
class TestStringMethods(unittest.TestCase):
def test_string(self):
2017-12-13 13:22:31 +00:00
try:
for name, obj in inspect.getmembers(ogn_python.model):
2017-12-13 13:22:31 +00:00
print("Testing: {}".format(name))
if inspect.isclass(obj):
print(obj())
except AttributeError as e:
raise AssertionError(e)
2017-10-03 10:59:45 +00:00
2017-10-03 10:59:45 +00:00
if __name__ == '__main__':
unittest.main()