Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import unittest
import warnings

import pytest
import docker
import six

Expand Down Expand Up @@ -1578,10 +1579,11 @@ def test_649(self):
self.client.stop(ctnr)


if __name__ == '__main__':
@pytest.fixture(scope="session", autouse=True)
def execute_before_any_test():
c = docker.Client(base_url=DEFAULT_BASE_URL)
c.pull('busybox')
exec_driver = c.info()['ExecutionDriver']
global EXEC_DRIVER_IS_NATIVE
EXEC_DRIVER_IS_NATIVE = exec_driver.startswith('native')
c.close()
unittest.main()