Skip to content

Commit 5cb03e8

Browse files
committed
improve url
1 parent c805fcd commit 5cb03e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_django/live_server_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def stop(self):
3131

3232
@property
3333
def url(self):
34-
return "http://%s:%s" % (self._dj_testcase.host, self._dj_testcase.server_thread.port)
34+
return self._dj_testcase.live_server_url
3535

3636
def __str__(self):
3737
return self.url

0 commit comments

Comments
 (0)