From 5cb028ec93bf46b2dbf75bc9d1d86a937de9a4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1o=20Belica?= Date: Sat, 29 Mar 2014 16:07:51 +0100 Subject: [PATCH] Tests are executable with pytest framework Pytest ignores files with name "test.py" for me :( --- breadability/scripts/test_helper.py | 2 +- .../test_antipope_org/{test.py => test_article.py} | 0 .../test_businessinsider-com/{test.py => test_article.py} | 0 .../test_businessinsider_com/{test.py => test_article.py} | 0 .../test_cz_zdrojak_tests/{test.py => test_article.py} | 0 .../test_scripting_com/{test.py => test_article.py} | 0 .../test_articles/test_sweetshark/{test.py => test_article.py} | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename tests/test_articles/test_antipope_org/{test.py => test_article.py} (100%) rename tests/test_articles/test_businessinsider-com/{test.py => test_article.py} (100%) rename tests/test_articles/test_businessinsider_com/{test.py => test_article.py} (100%) rename tests/test_articles/test_cz_zdrojak_tests/{test.py => test_article.py} (100%) rename tests/test_articles/test_scripting_com/{test.py => test_article.py} (100%) rename tests/test_articles/test_sweetshark/{test.py => test_article.py} (100%) diff --git a/breadability/scripts/test_helper.py b/breadability/scripts/test_helper.py index 5fd2dae..b8266bf 100644 --- a/breadability/scripts/test_helper.py +++ b/breadability/scripts/test_helper.py @@ -96,7 +96,7 @@ def make_test_files(directory_path, url): "source_url": to_unicode(url) } - test_file = join(directory_path, "test.py") + test_file = join(directory_path, "test_article.py") with open(test_file, "w") as file: file.write(data) diff --git a/tests/test_articles/test_antipope_org/test.py b/tests/test_articles/test_antipope_org/test_article.py similarity index 100% rename from tests/test_articles/test_antipope_org/test.py rename to tests/test_articles/test_antipope_org/test_article.py diff --git a/tests/test_articles/test_businessinsider-com/test.py b/tests/test_articles/test_businessinsider-com/test_article.py similarity index 100% rename from tests/test_articles/test_businessinsider-com/test.py rename to tests/test_articles/test_businessinsider-com/test_article.py diff --git a/tests/test_articles/test_businessinsider_com/test.py b/tests/test_articles/test_businessinsider_com/test_article.py similarity index 100% rename from tests/test_articles/test_businessinsider_com/test.py rename to tests/test_articles/test_businessinsider_com/test_article.py diff --git a/tests/test_articles/test_cz_zdrojak_tests/test.py b/tests/test_articles/test_cz_zdrojak_tests/test_article.py similarity index 100% rename from tests/test_articles/test_cz_zdrojak_tests/test.py rename to tests/test_articles/test_cz_zdrojak_tests/test_article.py diff --git a/tests/test_articles/test_scripting_com/test.py b/tests/test_articles/test_scripting_com/test_article.py similarity index 100% rename from tests/test_articles/test_scripting_com/test.py rename to tests/test_articles/test_scripting_com/test_article.py diff --git a/tests/test_articles/test_sweetshark/test.py b/tests/test_articles/test_sweetshark/test_article.py similarity index 100% rename from tests/test_articles/test_sweetshark/test.py rename to tests/test_articles/test_sweetshark/test_article.py