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

Fix/test cleanup #1578

Merged
merged 3 commits into from
Jun 27, 2019
Merged

Fix/test cleanup #1578

merged 3 commits into from
Jun 27, 2019

Commits on Jun 27, 2019

  1. update test_context.py to use a local import of mock_adapter

    This is consistent with the way that unit tests import utils.py and
    also fixes an import issue with our test environment.
    Matt Ball committed Jun 27, 2019
    Configuration menu
    Copy the full SHA
    4a10f2c View commit details
    Browse the repository at this point in the history
  2. remove DeprecationWarnings from test/unit files

    We're getting a bunch of deprecation warnings when running the unit
    tests due to using statements like assertEquals instead of assertEqual.
    This change removes these warnings.
    
    Change completed via these Linux commands:
    
    $ cd test/unit
    $ sed -i 's/self.assertEquals/self.assertEqual/g' test_*.py
    $ sed -i 's/self.assertNotEquals/self.assertNotEqual/g' test_*.py
    Matt Ball committed Jun 27, 2019
    Configuration menu
    Copy the full SHA
    3ad3021 View commit details
    Browse the repository at this point in the history
  3. change assert{Not}Equals to assert{Not}Equal in integration tests

    This is to remove deprecation warnings during testing.
    
    Linux commands (with globstar shell option enable):
    
    $ cd test
    $ sed -i 's/self.assertEquals/self.assertEqual/g' **/*.py
    $ sed -i 's/self.assertNotEquals/self.assertNotEqual/g' **/*.py
    Matt Ball committed Jun 27, 2019
    Configuration menu
    Copy the full SHA
    2f1dbc2 View commit details
    Browse the repository at this point in the history