Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Aug 27, 2023
1 parent 3ac4c26 commit 8bf787e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_detect_encoding(self):
self.assertEqual(
'utf-8',
autopep8.detect_encoding(
os.path.join(ROOT_DIR, 'setup.py')))
os.path.join(ROOT_DIR, 'test', 'test_autopep8.py')))

def test_detect_encoding_with_cookie(self):
self.assertEqual(
Expand Down Expand Up @@ -5959,6 +5959,7 @@ def test_pyproject_toml_config_local_int_value(self):
with temporary_file_context('[tool.autopep8]\naggressive=2\n') as filename:
args = autopep8.parse_args(
[os.path.join(FAKE_CONFIGURATION, 'foo.py'),
'--ignore-local-config',
'--global-config={}'.format(filename)],
apply_config=True)
self.assertEqual(args.aggressive, 2)
Expand Down

0 comments on commit 8bf787e

Please sign in to comment.