Skip to content

Commit bdb7742

Browse files
authored
Refactor: Move all tests to tests/ directory (#40)
* Refactor: Move all tests to tests/ directory - Moved test.py -> tests/test_delayed_assert.py - Moved test_color_toggle.py -> tests/test_color_toggle.py - Moved test_issue_15.py -> tests/test_issue_15.py - Moved test_issue_33.py -> tests/test_issue_33.py - Moved example_unittest.py -> tests/example_unittest.py - Updated pytest.ini - Updated README.md reference * Refactor: Remove Travis CI and update badges * CI: Install package in tests workflow to ensure importability
1 parent 1151399 commit bdb7742

File tree

9 files changed

+4
-14
lines changed

9 files changed

+4
-14
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
python -m pip install --upgrade pip
2626
python -m pip install pytest pytest-xdist
2727
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
pip install -e .
2829
- name: Run tests (Parallel)
2930
run: |
3031
pytest -n auto

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/pr4bh4sh/delayed-assert.svg?branch=master)](https://travis-ci.org/pr4bh4sh/delayed-assert)
1+
[![Tests](https://github.com/pr4bh4sh/delayed-assert/actions/workflows/tests.yml/badge.svg)](https://github.com/pr4bh4sh/delayed-assert/actions/workflows/tests.yml)
22
[![PyPI version](https://badge.fury.io/py/delayed-assert.svg)](https://badge.fury.io/py/delayed-assert)
33
[![Downloads](https://pepy.tech/badge/delayed-assert)](https://pepy.tech/project/delayed-assert)
44
[![Downloads](https://pepy.tech/badge/delayed-assert/month)](https://pepy.tech/project/delayed-assert)
@@ -31,7 +31,7 @@ Few features:
3131

3232
## Uses
3333

34-
See `example_unittest.py` for usage.
34+
See `tests/example_unittest.py` for usage.
3535

3636
### Using assertion library with lambda
3737

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[pytest]
2-
python_files = test.py test_*.py *_test.py
2+
python_files = test_*.py *_test.py
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)