exview tests¶
ExTests for extools.view.ExView.
-
class
extools.view.tests.extest_exview.ExViewAttributesTestCase(log_level=15)[source]¶ Bases:
extools.test.ExTestCaseVerify
extools.view.ExViewpasses attrs to the view.
-
class
extools.view.tests.extest_exview.ExViewCMTestCase(log_level=15)[source]¶ Bases:
extools.test.ExTestCaseTest the
extools.view.exviewcontext manager.-
test_exview_contextmanager()[source]¶ Verify that the
extools.view.exview()context manager is working:- Opens and seeks to the first record by default.
- Opens and seeks to the provided criteria.
- Raises on an invalid view id.
-
-
class
extools.view.tests.extest_exview.ExViewExceptionsTestCase(log_level=15)[source]¶ Bases:
extools.test.ExTestCaseVerify
extools.view.ExViewraises on non-zero returns.-
generate_raise_tests()[source]¶ Generate mocked raise tests for all wrapped methods.
Dynamically create a test for each method in
extools.view.ExView.WRAP. This should be run during the.setup_class()hook so that the tests are defined before.run()is called.
-
-
class
extools.view.tests.extest_exview.ExViewInternalsTestCase(log_level=15)[source]¶ Bases:
extools.test.ExTestCaseVerify
extools.view.ExViewinternals are working.-
test_compose_optfield_view_detection()[source]¶ Verify that optfield views are detected and helpers added.
-
-
class
extools.view.tests.extest_exview.ExViewProxyMethodsTestCase(log_level=15)[source]¶ Bases:
extools.test.ExTestCaseVerify
extools.view.ExViewproxy methods are working.
-
class
extools.view.tests.extest_exview.ExViewViewCacheTestCase(log_level=15)[source]¶ Bases:
extools.test.ExTestCaseVerify
extools.view.ExViewview cache is working.