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

Unit test for IPython Interpreters #30

Closed
clintval opened this issue Feb 7, 2018 · 1 comment
Closed

Unit test for IPython Interpreters #30

clintval opened this issue Feb 7, 2018 · 1 comment
Labels

Comments

@clintval
Copy link
Owner

clintval commented Feb 7, 2018

Try this:

import sample_sheet._sample_sheet

from sample_sheet._sample_sheet import is_ipython_interpreter

class TestIsIpythonInterpreter(TestCase):
    """Unit tests for ``is_ipython_interpreter()``"""

    def test_is_ipython_interpreter(self):
        """Test if this test framework is run in an IPython interpreter."""
        assert_false(is_ipython_interpreter())

        _sample_sheet.__IPYTHON__ = None

        assert_true(is_python_interpreter())
@clintval clintval added the tests label Feb 7, 2018
clintval added a commit that referenced this issue Feb 19, 2018
@clintval
Copy link
Owner Author

Nothing worked.

Avoided testing and coverage with # pragma: no cover

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

No branches or pull requests

1 participant