os.environ['DJANGO_LIVE_TEST_SERVER_ADDRESS'] = '0.0.0.0:8000'


class IntegrationTests(StaticLiveServerTestCase):
    live_server_url = 'http://{}:8000'.format(socket.gethostbyname(socket.
        gethostname()))

def setUp(self):
    settings.DEBUG = True
self.browser = webdriver.Remote(command_executor=
    'http://selenium:4444/wd/hub', desired_capabilities=DesiredCapabilities
    .CHROME)

def tearDown(self):
    self.browser.quit()
super().tearDown()

def test_home(self):
    self.browser.get(self.live_server_url)
Running django tests with selenium in docker