lint tests

Lint with [refurb](https://github.com/dosisod/refurb) using `--disable 126 --python-version 3.9`

Also update bats to 1.8.2 and bats-assets to 2.1.0. No changes to the tests, all still passing.
This commit is contained in:
OMEGARAZER
2022-11-30 18:05:10 -05:00
parent 831f49daa6
commit ef7fcce1cc
6 changed files with 8 additions and 8 deletions

View File

@@ -66,6 +66,6 @@ def test_token_manager_write(example_config: configparser.ConfigParser, tmp_path
test_manager = OAuth2TokenManager(example_config, test_path)
test_manager.post_refresh_callback(mock_authoriser)
assert example_config.get('DEFAULT', 'user_token') == 'changed_token'
with open(test_path, 'r') as file:
with test_path.open('r') as file:
file_contents = file.read()
assert 'user_token = changed_token' in file_contents