Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit b22d1cf

Browse files
committed
Merge pull request #18 from google/tests
Use pytest and tox for testing
2 parents f4bad87 + 673fed6 commit b22d1cf

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

File renamed without changes.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@
1919
import tempfile
2020
import unittest
2121

22-
import gflags
23-
2422
import common_stub
2523
from adb import fastboot
2624

27-
FLAGS = gflags.FLAGS
2825

2926
class FastbootTest(unittest.TestCase):
3027

tox.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
2+
# virtualenvs. This configuration file will run the test suite on all
3+
# supported python versions. To use it, "pip install tox" and then run
4+
# "tox" from this directory.
5+
6+
[tox]
7+
envlist =
8+
py27
9+
10+
[testenv]
11+
deps =
12+
pytest
13+
pytest-cov
14+
usedevelop = True
15+
commands = py.test --cov adb test

0 commit comments

Comments
 (0)