From 8f8cbbb149f2f21de389c69f619dea494ce2196b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 23 2019 08:07:35 +0000 Subject: Adjust the style test to include the tests themselves Signed-off-by: Pierre-Yves Chibon --- diff --git a/tests/test_style.py b/tests/test_style.py index 6af9509..1a32efc 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -21,7 +21,9 @@ import unittest import six REPO_PATH = os.path.abspath( - os.path.join(os.path.dirname(__file__), '..', 'pagure')) + os.path.join(os.path.dirname(__file__), "..", "pagure") +) +TESTS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__))) class TestStyle(unittest.TestCase): @@ -72,7 +74,14 @@ class TestStyle(unittest.TestCase): non-zero exit code. """ black_command = [ - sys.executable, '-m', 'black', '-l', '79', '--check', REPO_PATH + sys.executable, + "-m", + "black", + "-l", + "79", + "--check", + REPO_PATH, + TESTS_PATH, ] proc = subprocess.Popen( black_command,