Skip to content

Commit c65fe84

Browse files
committed
switch to pytest
1 parent f3f7f5a commit c65fe84

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dist: xenial
55
install:
66
- pip install --pre -e '.[dev]'
77
script:
8-
- python -m unittest
8+
- pytest
99

1010
stages:
1111
- pre-commit hooks
@@ -53,4 +53,4 @@ matrix:
5353
secure: "WhUEch0YOZRtqr+r6BAd2KfgMY2IctHdoXNbl60qbyURjX3RzmICxB6GFHlAPkzu+b7GkY/WxKrAEa9NjjkHZ69M+x6ozORW4+YzicNVIgqxQkE65Su6l8zOCSexncMJrtmYceoxaRcX2Bsjy9r5fAv0gO6+WugOCAV6sZHkANqIjySTN82vAnla9/htWcesvw3JFckhdsPH/Lnu+o/hHKeM33vQUsJThQ73fatNuObyzglaoNu2L1PSjitI3wBA3jOpAL2o5v7bD/P7Krpu+YsGlaJNMHfHWkcNxypikZitCKcocoI7dWgQvSTqWA6TPV/MboRRF/2ZhnMKuw7ZY84GBx8Dyyw/len9s/1+m8kgu9ES1qJaIf03fvC60Uend2n2yk3sx6+rG1CCAvf21CJgMW+6XAqKpLI2tj0nPdBHvLGSdeRtTO5Ubpw8hDModlVai0RLhtYNkjLQkl+QrEehm2x/zhrP7gCudXQsKx8jvHHF70/pCN/WlvUhR42HEqWsPg7ZahkWi7YkFVY7e846ScxbWKjFL1s6vyCZso5U9DdUBvVEinshLoSZSbXotF4oHqdyKf17Hk0P6dPn/ocxGRB5rWWn5irhtEqcxZFKgawO8N1GYnTF64YewvO3O5gNqXrbpwCSScOrvDKDRosAWQ0yB/71ZvUEEcaYiFw="
5454
on:
5555
tags: true
56-
all_branches: true
56+
all_branches: true

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
1818
':python_version == "3.6"': ["dataclasses"],
1919
"lint": ["pre-commit~=1.18"],
2020
"docs": ["sphinx"],
21-
# typed-ast (a dependency of mypy) fails to install on pypy: https://github.com/python/typed_ast/issues/111
22-
"tests": ["mypy; implementation_name != 'pypy'"],
21+
"tests": [
22+
"pytest",
23+
# typed-ast (a dependency of mypy) fails to install on pypy
24+
# https://github.com/python/typed_ast/issues/111
25+
"mypy; implementation_name != 'pypy'",
26+
],
2327
}
2428
EXTRAS_REQUIRE["dev"] = (
2529
EXTRAS_REQUIRE["enum"]

tests/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## How to run
44
In the project root, install dependencies and then run:
5-
5+
66
```bash
7-
python3 -m unittest
8-
```
7+
pytest
8+
```

0 commit comments

Comments
 (0)