From 8bf787ebff747450f9e893fb5093e1a769a32ea3 Mon Sep 17 00:00:00 2001 From: Hideo Hattori Date: Sun, 27 Aug 2023 22:55:00 +0900 Subject: [PATCH] fix unit tests --- test/test_autopep8.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_autopep8.py b/test/test_autopep8.py index c6319cfa..d58cd9c3 100755 --- a/test/test_autopep8.py +++ b/test/test_autopep8.py @@ -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( @@ -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)