Skip to content

Commit b95a321

Browse files
committed
Add STATIC_URL to settings too LiveServerTestCase works
1 parent e15ff84 commit b95a321

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

runtests.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
),
2323
MIDDLEWARE_CLASSES=[],
2424
ROOT_URLCONF='tests.urls',
25+
STATIC_URL='/static/',
2526
)
2627

2728

tests/test_rpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_bad_action(self):
5656
class RPCClientTest(LiveServerTestCase):
5757

5858
def setUp(self):
59-
self.rpc = client.RPCClient(self.live_server_url + '/rpc/')
59+
self.rpc = client.RPCClient('%s%s' % (self.live_server_url, '/rpc/'))
6060

6161
def test_echo(self):
6262
resp = self.rpc.echo(foo='bar')

0 commit comments

Comments
 (0)