exview tests¶
ExTests for extools.view.ExView
.
-
class
extools.view.tests.extest_exview.
ExViewAttributesTestCase
(log_level=15)[source]¶ Bases:
extools.test.ExTestCase
Verify
extools.view.ExView
passes attrs to the view.
-
class
extools.view.tests.extest_exview.
ExViewCMTestCase
(log_level=15)[source]¶ Bases:
extools.test.ExTestCase
Test the
extools.view.exview
context 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.ExTestCase
Verify
extools.view.ExView
raises 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.ExTestCase
Verify
extools.view.ExView
internals 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.ExTestCase
Verify
extools.view.ExView
proxy methods are working.
-
class
extools.view.tests.extest_exview.
ExViewViewCacheTestCase
(log_level=15)[source]¶ Bases:
extools.test.ExTestCase
Verify
extools.view.ExView
view cache is working.