diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2019-05-25 13:08:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 13:08:56 -0700 |
commit | 8cb7009bcd0f0062942932c853706a36178f566c (patch) | |
tree | cb5bb42674ccce90b173e7a2f09bf72157ae4a86 /tests/test_rowlimit.py | |
parent | a5e607b6fc889afd3f8960ca3903ae16b641c304 (diff) |
black all the things. (#1049)
* added black to develop guide
* no need for pep8radius.
* changelog.
* Add pre-commit checkbox.
* Add pre-commit to dev reqs.
* Add pyproject.toml for black.
* Pre-commit config.
* Add black to travis and dev reqs.
* Install and run black in travis.
* Remove black from dev reqs.
* Lower black target version.
* Re-format with black.
Diffstat (limited to 'tests/test_rowlimit.py')
-rw-r--r-- | tests/test_rowlimit.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_rowlimit.py b/tests/test_rowlimit.py index 91389a15..bc66f1e7 100644 --- a/tests/test_rowlimit.py +++ b/tests/test_rowlimit.py @@ -6,6 +6,7 @@ import pytest # We need this fixtures beacause we need PGCli object to be created # after test collection so it has config loaded from temp directory + @pytest.fixture(scope="module") def default_pgcli_obj(): return PGCli() @@ -24,9 +25,7 @@ def LIMIT(DEFAULT): @pytest.fixture(scope="module") def over_default(DEFAULT): over_default_cursor = Mock() - over_default_cursor.configure_mock( - rowcount=DEFAULT + 10 - ) + over_default_cursor.configure_mock(rowcount=DEFAULT + 10) return over_default_cursor |