diff --git a/tests/conftest.py b/tests/conftest.py index b5b885b..b2cebb3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,3 @@ -import pathlib -import re - import pytest import responses @@ -8,6 +5,7 @@ sample_config = { "comment": "#", + "src": "krypto", "prefix": "TODO", "attach-issue": False, "include": "tests", diff --git a/tests/test_config.py b/tests/test_config.py index 20d6e68..ddc89f3 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -11,6 +11,7 @@ def test_config(tmp_path): [tool.krypto] comment = "#" prefix = "TODO" +src = "krypto" include = "tests" attach-issue = false """.strip() @@ -18,12 +19,12 @@ def test_config(tmp_path): config = Config(pyproject) - test_config = sample_config - del test_config["dry"] - del test_config["username"] - del test_config["repository"] + test_config_dict = sample_config + del test_config_dict["dry"] + del test_config_dict["username"] + del test_config_dict["repository"] - assert config.parse() == test_config + assert config.parse() == test_config_dict def test_config_malformed(tmp_path): @@ -32,6 +33,7 @@ def test_config_malformed(tmp_path): """ [tool.kry] prefix = "TODO" +src = "krypto" include = "tests" attach-issue = false """.strip() diff --git a/tests/test_github.py b/tests/test_github.py index 6a2838b..2956c6d 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -34,7 +34,6 @@ def test_request_body_no_body(sample_todo): def test_basename(): username, repository = get_basename() - print(get_basename()) assert username == "antoniouaa" assert repository == "krypto"