aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/func/test_net.py
diff options
context:
space:
mode:
authorrr-2017-03-03 17:24:58 +0100
committerrr-2017-03-03 17:27:23 +0100
commit5681fd11efe93b5b2a1719f16c9f253ffd508842 (patch)
tree4fbab2966a607b1ed69ec4e22d7cb3740c410596 /server/szurubooru/tests/func/test_net.py
parente087b83082703c54cad919c961a95cadc8e19cfa (diff)
server/net: make the user-agent configurable
Fixes #127
Diffstat (limited to 'server/szurubooru/tests/func/test_net.py')
-rw-r--r--server/szurubooru/tests/func/test_net.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/szurubooru/tests/func/test_net.py b/server/szurubooru/tests/func/test_net.py
index f749d38..fb149b0 100644
--- a/server/szurubooru/tests/func/test_net.py
+++ b/server/szurubooru/tests/func/test_net.py
@@ -1,7 +1,10 @@
from szurubooru.func import net
-def test_download():
+def test_download(config_injector):
+ config_injector({
+ 'user_agent': None
+ })
url = 'http://info.cern.ch/hypertext/WWW/TheProject.html'
expected_content = (

© 2015 - 2026 Jakob L. Kreuze