From 5ce6372a296d454a134d3a93491d0d5a5c5fce2c Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 19 May 2023 17:02:18 +0400 Subject: [PATCH] Removed .html extension, because GitHub shows HTML in language stats --- tests/files.py | 2 +- tests/samples/html/{aternos_config.html => aternos_config} | 0 .../html/{aternos_files_root.html => aternos_files_root} | 0 tests/samples/html/{aternos_go.html => aternos_go} | 0 tests/samples/html/{aternos_players.html => aternos_players} | 0 tests/samples/html/{aternos_server1.html => aternos_server1} | 0 tests/samples/html/{aternos_servers.html => aternos_servers} | 0 tests/samples/html/{aternos_status.html => aternos_status} | 0 8 files changed, 1 insertion(+), 1 deletion(-) rename tests/samples/html/{aternos_config.html => aternos_config} (100%) rename tests/samples/html/{aternos_files_root.html => aternos_files_root} (100%) rename tests/samples/html/{aternos_go.html => aternos_go} (100%) rename tests/samples/html/{aternos_players.html => aternos_players} (100%) rename tests/samples/html/{aternos_server1.html => aternos_server1} (100%) rename tests/samples/html/{aternos_servers.html => aternos_servers} (100%) rename tests/samples/html/{aternos_status.html => aternos_status} (100%) diff --git a/tests/files.py b/tests/files.py index f929298..2be2118 100644 --- a/tests/files.py +++ b/tests/files.py @@ -23,7 +23,7 @@ def read_sample(name: str) -> List[str]: def read_html(name: str) -> bytes: - path = samples / 'html' / (name + '.html') + path = samples / 'html' / name if not path.exists(): return b'' diff --git a/tests/samples/html/aternos_config.html b/tests/samples/html/aternos_config similarity index 100% rename from tests/samples/html/aternos_config.html rename to tests/samples/html/aternos_config diff --git a/tests/samples/html/aternos_files_root.html b/tests/samples/html/aternos_files_root similarity index 100% rename from tests/samples/html/aternos_files_root.html rename to tests/samples/html/aternos_files_root diff --git a/tests/samples/html/aternos_go.html b/tests/samples/html/aternos_go similarity index 100% rename from tests/samples/html/aternos_go.html rename to tests/samples/html/aternos_go diff --git a/tests/samples/html/aternos_players.html b/tests/samples/html/aternos_players similarity index 100% rename from tests/samples/html/aternos_players.html rename to tests/samples/html/aternos_players diff --git a/tests/samples/html/aternos_server1.html b/tests/samples/html/aternos_server1 similarity index 100% rename from tests/samples/html/aternos_server1.html rename to tests/samples/html/aternos_server1 diff --git a/tests/samples/html/aternos_servers.html b/tests/samples/html/aternos_servers similarity index 100% rename from tests/samples/html/aternos_servers.html rename to tests/samples/html/aternos_servers diff --git a/tests/samples/html/aternos_status.html b/tests/samples/html/aternos_status similarity index 100% rename from tests/samples/html/aternos_status.html rename to tests/samples/html/aternos_status