From 7a64344cfca4a3befe43d646ee058acbb036ae66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Andr=C3=A9s=20Rodr=C3=ADguez=20Scelza?= Date: Tue, 4 Jun 2019 16:43:30 -0300 Subject: [PATCH] advancing in testing of docstring --- .../general_hooks/check_class_docstring_test.py | 2 +- .../tests/automatic_testing/testing_files/__init__.py | 0 .../testing_files/class_docstring_samples/__init__.py | 0 .../{ => class_docstring_samples}/docstring_samples.py | 0 4 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/__init__.py create mode 100644 pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/class_docstring_samples/__init__.py rename pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/{ => class_docstring_samples}/docstring_samples.py (100%) diff --git a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_class_docstring_test.py b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_class_docstring_test.py index 1fb89db..e61f472 100644 --- a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_class_docstring_test.py +++ b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_class_docstring_test.py @@ -13,7 +13,7 @@ def clean_sys_argv(): yield -def test_branch_name_ok(): +def test_docstring_ok(): new_branch_name = str(uuid.uuid4()) subprocess.check_output(['git', 'checkout', '-b', new_branch_name]) sys.argv.append('--regex') diff --git a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/__init__.py b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/class_docstring_samples/__init__.py b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/class_docstring_samples/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/docstring_samples.py b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/class_docstring_samples/docstring_samples.py similarity index 100% rename from pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/docstring_samples.py rename to pre_commit_hooks/loaderon_hooks/tests/automatic_testing/testing_files/class_docstring_samples/docstring_samples.py