Skip to content

Commit

Permalink
minor update in testing env
Browse files Browse the repository at this point in the history
  • Loading branch information
ronylpatil committed Mar 26, 2024
1 parent fe3c855 commit f0dd92a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def test_load_data(load_dataset) :
else :
pytest.fail('Unable to fetch data from remote server')

# ---- OR ----
# assert isinstance(load_dataset, pd.DataFrame), "Failure Message" # it will raise assertion error

# test feature generation functionality
# 'request' is a fixture that provides information about the currently executing test.
# It allows us to access various attributes and methods to get information about the test
Expand Down
14 changes: 12 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
[tox] # global settings
envlist = py39 # define the list of environment to test against
envlist = py39, py312 # define the list of environment to test against
skipsdist = True # skip creating package

[testenv]
deps = -rrequirements-tox.txt # dependency
commands = pytest tests/ # testcases
; commands = pytest tests/ --verbose --disable-warnings # testcases

; we can also execute differet testing files with diff python versions
[testenv:py39]
basepython = python3.9
commands = pytest tests/ --verbose --disable-warnings

[testenv:py312]
basepython = python3.12
commands = pytest tests/ --verbose --disable-warnings

0 comments on commit f0dd92a

Please sign in to comment.