SEBA-282 xosgenx filtering by app or model;
provide a default argument class for XOSProcessor;
remove tabs;
rename unit tests missed by nose2
Change-Id: I07b782982b6733f8828b8a5a72807326f430b1a5
diff --git a/lib/xos-genx/xos-genx-tests/test_package.py b/lib/xos-genx/xos-genx-tests/test_package.py
index 373a818..f1cf426 100644
--- a/lib/xos-genx/xos-genx-tests/test_package.py
+++ b/lib/xos-genx/xos-genx-tests/test_package.py
@@ -16,12 +16,12 @@
import unittest
import os
-from xosgenx.generator import XOSProcessor
-from helpers import FakeArgs, XProtoTestHelpers
+from xosgenx.generator import XOSProcessor, XOSProcessorArgs
+from helpers import XProtoTestHelpers
class XProtoPackageTest(unittest.TestCase):
def test_package_fqn(self):
- args = FakeArgs()
+ args = XOSProcessorArgs()
target = XProtoTestHelpers.write_tmp_target(
"""
{% for m in proto.messages %}
@@ -42,7 +42,7 @@
required bool xos_created = 6 [default = False, null = False, db_index = False, blank = True];
}
"""
- args = FakeArgs()
+ args = XOSProcessorArgs()
args.inputs = xproto
args.target = target
@@ -159,7 +159,7 @@
required manytomany tags->Tag = 18 [db_index = False, null = False, blank = True];
}
"""
- args = FakeArgs()
+ args = XOSProcessorArgs()
args.inputs = xproto
args.target = target
output = XOSProcessor.process(args)
@@ -220,7 +220,7 @@
required manytomany tags->Tag = 17 [db_index = False, null = False, blank = True];
}
"""
- args = FakeArgs()
+ args = XOSProcessorArgs()
args.inputs = xproto
args.target = target
output = XOSProcessor.process(args)
@@ -321,7 +321,7 @@
required manytomany tags->Tag = 18 [db_index = False, null = False, blank = True];
}
"""
- args = FakeArgs()
+ args = XOSProcessorArgs()
args.inputs = xproto
args.target = target
output = XOSProcessor.process(args)
@@ -427,7 +427,7 @@
}
"""
- args = FakeArgs()
+ args = XOSProcessorArgs()
args.inputs = xproto
args.target = target
output = XOSProcessor.process(args)