From 1f9872a99690fed37fce59cdfb3ace551f28a777 Mon Sep 17 00:00:00 2001 From: Prabhash Date: Sun, 7 Dec 2025 23:35:26 +0000 Subject: [PATCH 1/3] 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 --- README.md | 2 +- pytest.ini | 2 +- example_unittest.py => tests/example_unittest.py | 0 test_color_toggle.py => tests/test_color_toggle.py | 0 test.py => tests/test_delayed_assert.py | 0 test_issue_15.py => tests/test_issue_15.py | 0 test_issue_33.py => tests/test_issue_33.py | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename example_unittest.py => tests/example_unittest.py (100%) rename test_color_toggle.py => tests/test_color_toggle.py (100%) rename test.py => tests/test_delayed_assert.py (100%) rename test_issue_15.py => tests/test_issue_15.py (100%) rename test_issue_33.py => tests/test_issue_33.py (100%) diff --git a/README.md b/README.md index c0acd32..05e2d2c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Few features: ## Uses -See `example_unittest.py` for usage. +See `tests/example_unittest.py` for usage. ### Using assertion library with lambda diff --git a/pytest.ini b/pytest.ini index a35615f..f48043d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,2 @@ [pytest] -python_files = test.py test_*.py *_test.py +python_files = test_*.py *_test.py diff --git a/example_unittest.py b/tests/example_unittest.py similarity index 100% rename from example_unittest.py rename to tests/example_unittest.py diff --git a/test_color_toggle.py b/tests/test_color_toggle.py similarity index 100% rename from test_color_toggle.py rename to tests/test_color_toggle.py diff --git a/test.py b/tests/test_delayed_assert.py similarity index 100% rename from test.py rename to tests/test_delayed_assert.py diff --git a/test_issue_15.py b/tests/test_issue_15.py similarity index 100% rename from test_issue_15.py rename to tests/test_issue_15.py diff --git a/test_issue_33.py b/tests/test_issue_33.py similarity index 100% rename from test_issue_33.py rename to tests/test_issue_33.py From e95158ac414662a28060400bffad5b5abc561b99 Mon Sep 17 00:00:00 2001 From: Prabhash Date: Sun, 7 Dec 2025 23:36:55 +0000 Subject: [PATCH 2/3] Refactor: Remove Travis CI and update badges --- .travis.yml | 11 ----------- README.md | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b6ac443..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: python -dist: xenial - -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - - "3.7" - -script: python -m unittest test diff --git a/README.md b/README.md index 05e2d2c..b6194a5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/pr4bh4sh/delayed-assert.svg?branch=master)](https://travis-ci.org/pr4bh4sh/delayed-assert) +[![Tests](https://github.com/pr4bh4sh/delayed-assert/actions/workflows/tests.yml/badge.svg)](https://github.com/pr4bh4sh/delayed-assert/actions/workflows/tests.yml) [![PyPI version](https://badge.fury.io/py/delayed-assert.svg)](https://badge.fury.io/py/delayed-assert) [![Downloads](https://pepy.tech/badge/delayed-assert)](https://pepy.tech/project/delayed-assert) [![Downloads](https://pepy.tech/badge/delayed-assert/month)](https://pepy.tech/project/delayed-assert) From 3f30be08714771ddbb637320848fe53bbc7c2a33 Mon Sep 17 00:00:00 2001 From: Prabhash Date: Sun, 7 Dec 2025 23:39:31 +0000 Subject: [PATCH 3/3] CI: Install package in tests workflow to ensure importability --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e044b4..c7f2788 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,7 @@ jobs: python -m pip install --upgrade pip python -m pip install pytest pytest-xdist if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -e . - name: Run tests (Parallel) run: | pytest -n auto