diff --git a/tests/test_python_code_quality.py b/tests/test_python_code_quality.py index d1580cb..e3add50 100644 --- a/tests/test_python_code_quality.py +++ b/tests/test_python_code_quality.py @@ -1,13 +1,15 @@ """Test the project's code quality using pylint""" import logging +import os from pylint import epylint as lint def test_python_code_quality() -> None: """Run the project's source code through pylint and assert 0 errors should exist""" - command_options = "../python-project-template --disable=C0103" + current_working_directory = os.path.basename(os.getcwd()) + command_options = f"../{current_working_directory} --disable=C0103" (pylint_stdout, pylint_stderr) = lint.py_run(command_options=command_options, return_std=True) standard_output_data = pylint_stdout.read() standard_error_data = pylint_stderr.read()