Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some more robust tests #28

Open
joshuamorton opened this issue Sep 2, 2017 · 0 comments
Open

Add some more robust tests #28

joshuamorton opened this issue Sep 2, 2017 · 0 comments

Comments

@joshuamorton
Copy link
Member

The tests currently in test/pyroestest/test_system.py won't give useful error messages, and may pass for the wrong reasons. While they're a good smoke test, we should add another set of tests that follows a pattern like

class TestSystem(unittest.Testcase):
    class InternalTester(unittest.TestCase):
        @decorators
        def test_function(self, stuff)
    self._testcase = InternalTester
    def test_testcase(self):
        with self.assertRaises(CorrectException):
            self._testcase.test_function()

Some more meat to it than that (correctly running the test contextually) but that's the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant