I am using selenium for functional tests with geckodriver and firefox.
I see the host is http://localhost:62305 and this is generated in that class with:
@classproperty
def live_server_url(cls):
return 'http://%s:%s' % (cls.host, cls.server_thread.port)
In the functionality I am creating, I give the user a way to create a tenant with its own subdomain but for the purpose of the unit test it can be a domain.
So for example I create a tenant with domain example.com, how can I get
StaticLiveServerTestCase to point that domain name to the currently running app on that same port, within the same functional test method.
I looked at this post suggesting editing /etc/hosts. The problem with that is it won't just work on CI and other people's computers.