From 5ffd98b80971f7dfbbd5398af1952312db457ab5 Mon Sep 17 00:00:00 2001 From: Stephen-RA-King <33905365+Stephen-RA-King@users.noreply.github.com> Date: Sat, 27 Aug 2022 19:11:17 +0100 Subject: [PATCH] chore: add find_yaml_config_file test --- tests/test_find_yaml_config_file.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_find_yaml_config_file.py diff --git a/tests/test_find_yaml_config_file.py b/tests/test_find_yaml_config_file.py new file mode 100644 index 0000000..6491c63 --- /dev/null +++ b/tests/test_find_yaml_config_file.py @@ -0,0 +1,16 @@ +# Core Library modules +from typing import Any + +# Third party modules +import pytest + +# First party modules +from piptools_sync import piptools_sync + +TEST_DIR = pytest.TEST_DIR + + +def test_find_yaml_config_file() -> None: + result = piptools_sync.find_yaml_config_file() + file = result.stem + assert file == ".pre-commit-config"