Skip to content

feat: migrate misc tests #32

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

Merged
merged 3 commits into from
Feb 5, 2019
Merged

feat: migrate misc tests #32

merged 3 commits into from
Feb 5, 2019

Conversation

dtopuzov
Copy link
Contributor

@dtopuzov dtopuzov commented Feb 5, 2019

Migrated tests:

  • autocomplete
  • error reporting
  • setup
  • version

Features in core:

  • Fix get class name
  • Enable creating test classes based on TnsTests without specifying setUp and tearDown methods

How tests was looking before:

class MyTestClass(TnsTest):

    @classmethod
    def setUpClass(cls):
        TnsTest.setUpClass()

    def setUp(self):
        TnsTest.setUp(self)

   def tearDown(self):
        TnsTest.tearDown(self)

    @classmethod
    def tearDownClass(cls):
        TnsTest.tearDownClass()

    def test_hello(self):
        pass

Example how simple test can look like now (and hooks in base class are still executed):

class MyTestClass(TnsTest):

    def test_hello(self):
        pass

Migrated tests:
- autocomplete
- error reporting
- setup
- version

Features in core:
- Fix get class name
- Enable creating test classes based on TnsTests without specifing setUp and tearDown methods
@dtopuzov dtopuzov changed the title feat: migrate tests feat: migrate misc tests Feb 5, 2019
@dtopuzov dtopuzov merged commit e0e72f2 into master Feb 5, 2019
@dtopuzov dtopuzov deleted the dtopuzov/migrate-misc-tests branch February 5, 2019 15:41
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

Successfully merging this pull request may close these issues.

2 participants