Skip to content

Commit f9a540a

Browse files
committed
Merge branch 'pytest' of https://github.com/aanand/docker-py into aanand-pytest
2 parents 47e0ad6 + d5bcdaf commit f9a540a

File tree

6 files changed

+113
-238
lines changed

6 files changed

+113
-238
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ build-py3:
1313
test: unit-test integration-test unit-test-py3 integration-test-py3
1414

1515
unit-test: build
16-
docker run docker-py python tests/test.py
16+
docker run docker-py py.test tests/test.py
1717

1818
unit-test-py3: build-py3
19-
docker run docker-py3 python tests/test.py
19+
docker run docker-py3 py.test tests/test.py
2020

2121
integration-test: build
2222
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py

test-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
mock==1.0.1
2-
coverage==3.7.1
2+
pytest==2.7.2
3+
pytest-cov==2.1.0

tests/fake_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import fake_stat
15+
from . import fake_stat
1616

1717
CURRENT_VERSION = 'v1.19'
1818

0 commit comments

Comments
 (0)