Skip to content

Commit c57792e

Browse files
committed
TMP: fix tests
1 parent 6df4943 commit c57792e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/olympia/amo/tests/test_monitor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def test_remotesettings_success(self):
110110
obtained, _ = monitors.remotesettings()
111111
assert obtained == ''
112112

113+
@override_settings(ENV='production')
113114
def test_remotesettings_bad_credentials(self):
114115
responses.add(
115116
responses.GET,
@@ -126,6 +127,7 @@ def test_remotesettings_bad_credentials(self):
126127
obtained, _ = monitors.remotesettings()
127128
assert 'Invalid credentials' in obtained
128129

130+
@override_settings(ENV='production')
129131
def test_remotesettings_fail(self):
130132
responses.add(
131133
responses.GET,
@@ -164,7 +166,7 @@ def test_cinder_fail(self):
164166
def test_localdev_web_fail(self):
165167
responses.add(
166168
responses.GET,
167-
'http://127.0.0.1:8002/__version__',
169+
'http://nginx/__version__',
168170
status=500,
169171
)
170172
status, _ = monitors.localdev_web()
@@ -173,7 +175,7 @@ def test_localdev_web_fail(self):
173175
def test_localdev_web_success(self):
174176
responses.add(
175177
responses.GET,
176-
'http://127.0.0.1:8002/__version__',
178+
'http://nginx/__version__',
177179
status=200,
178180
)
179181
status, _ = monitors.localdev_web()

0 commit comments

Comments
 (0)