-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Integration tests with docker""" | ||
|
||
import pytest | ||
import docker | ||
|
||
import vcr | ||
|
||
@pytest.mark.timeout(3) | ||
def test_docker(tmpdir, timeout=-3): | ||
with vcr.use_cassette(str(tmpdir.join("docker.yaml"))): | ||
client = docker.from_env() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Stubs for docker""" | ||
|
||
from docker.transport.unixconn import UnixHTTPConnection | ||
from ..stubs import VCRHTTPConnection | ||
|
||
# docker defines its own UnixHTTPConnection classes. It includes some polyfills | ||
# for newer features missing in older pythons. | ||
|
||
|
||
class VCRRequestsUnixHTTPConnection(VCRHTTPConnection, UnixHTTPConnection): | ||
_baseclass = UnixHTTPConnection |