Skip to content

Commit

Permalink
FEATURE: converted unittest to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
bcorfman committed Sep 7, 2022
1 parent 2f36a65 commit f96c70f
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 345 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ Raven is a checkers game program, for one or two players. While there are exampl

* Python 3.7 or higher on your system.
* Install [PDM](https://pdm.fming.dev) on your system.
* From a command prompt in the project directory, type `pdm install` to install project dependencies.
* From a command prompt in the project directory, type `pdm install --prod` to install project dependencies, or `pdm install -G dev` to install developer dependencies as well (such as the pytest library, necessary for running unit tests).

## Running the program

* From a command prompt inside the project folder, type `pdm run python main.py`.

## Running tests

* From a command prompt inside the project folder, type `pdm run pytest`.
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[pytest]
testpaths = tests
filterwarnings =
ignore::DeprecationWarning
344 changes: 0 additions & 344 deletions tests/test_checkers.py

This file was deleted.

Loading

0 comments on commit f96c70f

Please sign in to comment.