1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 08:26:03 +00:00

test: remove code no test run executes

- 25 vrtManager test modules configured settings themselves when Django
  had none (MAC_OUI, and in test_network_ip a fake django module): under
  manage.py test settings are always configured, so it never ran.
- webvirtcloud/tests/test_common_tags.py tested no tag: it fetched an
  unknown URL, as test_error_pages and test_logging already do.
- .gitignore covers the parallel runs' test_db_N.sqlite3 files too.
This commit is contained in:
catborise 2026-11-06 11:18:11 +03:00
parent 03811cc4ab
commit 42ab293dc5
27 changed files with 1 additions and 139 deletions

View file

@ -1,9 +0,0 @@
from django.contrib.auth import get_user_model
from django.test import TestCase
class NotFoundPageTestCase(TestCase):
def test_unknown_url_renders_404_for_logged_in_user(self):
user = get_user_model().objects.create_user("tags_user", "t@example.com", "pw")
self.client.force_login(user)
self.assertEqual(self.client.get("/no-such-page/").status_code, 404)