Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit dcd13e0

Browse files
committed
test: prefer pylama and pytest in tox over tests.sh
1 parent e8d9ae2 commit dcd13e0

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

pylama.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pylama:pycodestyle]
2+
max_line_length = 120

test/test_packet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def call_api(self, method, type='GET', params=None):
205205
return True
206206
else:
207207
fixture = '%s_%s' % (type.lower(), method.lower())
208-
with open('fixtures/%s.json' % (fixture.replace('/', '_').split("?")[0])) as data_file:
208+
with open('test/fixtures/%s.json' % (fixture.replace('/', '_').split("?")[0])) as data_file:
209209
return json.load(data_file)
210210

211211

test/tests.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

tox.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[tox]
2+
envlist = py27,py33,py34,py35,py36
3+
skip_missing_interpreters=True
4+
5+
[testenv]
6+
deps =
7+
pytest
8+
pytest-cov
9+
requests_mock
10+
11+
commands=
12+
py.test -v --cov {envsitepackagesdir}/packet --cov-report=term-missing test

0 commit comments

Comments
 (0)