summaryrefslogtreecommitdiffstats
path: root/core/TESTS
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-23 03:05:22 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-23 03:05:22 +0100
commit1a4be0f02e8ca2536bb754c7285c005478ad047a (patch)
treed46c92dbaee250b0ec89024bc6e629fdf5b9494d /core/TESTS
parent8f89b022c78a6d2d5e1f87cd6d0127fefde7a27f (diff)
downloadtroggle-1a4be0f02e8ca2536bb754c7285c005478ad047a.tar.gz
troggle-1a4be0f02e8ca2536bb754c7285c005478ad047a.tar.bz2
troggle-1a4be0f02e8ca2536bb754c7285c005478ad047a.zip
stop file logging from tests
Diffstat (limited to 'core/TESTS')
-rw-r--r--core/TESTS/tests.py4
-rw-r--r--core/TESTS/tests_caves.py16
-rw-r--r--core/TESTS/tests_logins.py4
3 files changed, 12 insertions, 12 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index d8143b5..1cf9f60 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -170,8 +170,8 @@ class PageTests(TestCase):
ph = r'All Survey scans folders '
content = response.content.decode()
phmatch = re.search(ph, content)
- with open('ss-op.html', 'w') as f:
- f.write(content)
+ # with open('ss-op.html', 'w') as f:
+ # f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
diff --git a/core/TESTS/tests_caves.py b/core/TESTS/tests_caves.py
index 841691c..0ff0f12 100644
--- a/core/TESTS/tests_caves.py
+++ b/core/TESTS/tests_caves.py
@@ -90,8 +90,8 @@ class FixturePageTests(TestCase):
content = response.content.decode()
phmatch = re.search(ph, content)
- with open('exped-op.html', 'w') as f:
- f.write(content)
+ # with open('exped-op.html', 'w') as f:
+ # f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
@@ -103,8 +103,8 @@ class FixturePageTests(TestCase):
content = response.content.decode()
phmatch = re.search(ph, content)
- with open('persexped-op.html', 'w') as f:
- f.write(content)
+ # with open('persexped-op.html', 'w') as f:
+ # f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
def test_fix_person(self):
@@ -115,8 +115,8 @@ class FixturePageTests(TestCase):
content = response.content.decode()
phmatch = re.search(ph, content)
- with open('person-op.html', 'w') as f:
- f.write(content)
+ # with open('person-op.html', 'w') as f:
+ # f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
@@ -138,8 +138,8 @@ class FixturePageTests(TestCase):
content = response.content.decode()
phmatch = re.search(ph, content)
- with open('cave-op.html', 'w') as f:
- f.write(content)
+ # with open('cave-op.html', 'w') as f:
+ # f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
def test_fix_cave_bare_url115(self):
diff --git a/core/TESTS/tests_logins.py b/core/TESTS/tests_logins.py
index 49c6da5..45bd33e 100644
--- a/core/TESTS/tests_logins.py
+++ b/core/TESTS/tests_logins.py
@@ -56,8 +56,8 @@ class FixturePageTests(TestCase):
response = c.get('/admin/')
content = response.content.decode()
- with open('admin-op.html', 'w') as f:
- f.write(content)
+ # with open('admin-op.html', 'w') as f:
+ # f.write(content)
t = re.search(r'Troggle administration', content)
self.assertIsNone(t, 'Logged in as \'' + u.username + '\' (not staff) but still managed to get the Admin page' )