kopia lustrzana https://github.com/glidernet/ogn-python
25 wiersze
535 B
Python
25 wiersze
535 B
Python
import os
|
|
|
|
import unittest
|
|
import inspect
|
|
|
|
os.environ['OGN_CONFIG_MODULE'] = 'config/test.py'
|
|
|
|
import ogn_python.model # noqa: E402
|
|
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
def test_string(self):
|
|
|
|
try:
|
|
for name, obj in inspect.getmembers(ogn_python.model):
|
|
print("Testing: {}".format(name))
|
|
if inspect.isclass(obj):
|
|
print(obj())
|
|
except AttributeError as e:
|
|
raise AssertionError(e)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|