Skip to content

Commit

Permalink
further removed testing
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomsaraiva committed Mar 6, 2024
1 parent 01f574a commit 4dd43e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ reportUndefinedVariable = false
reportMissingImports = false

[tool.pytest.ini_options]
addopts = "--cov=nanopyx --plots --doctest-modules --doctest-cython --ignore-glob=run*Tools.py --ignore=setup.py --ignore=notebooks/ --ignore=src/scripts --ignore=src/notebookchef --ignore=tests/notebooks"
addopts = "--cov=nanopyx --doctest-modules --doctest-cython --ignore-glob=run*Tools.py --ignore=setup.py --ignore=notebooks/ --ignore=src/scripts --ignore=src/notebookchef --ignore=tests/notebooks"
timeout = 6001
plt_dirname = "tests_plots"
doctest_encoding = "latin1"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
# Filters are standard python warning filters as described here:
Expand Down Expand Up @@ -176,7 +175,7 @@ build-verbosity = 0
# repair-wheel-command = ""

test-command = "pytest {project}/tests"
test-requires = ["nanopyx[all]"]
test-requires = ["nanopyx[test]"]
# test-extras = []

[tool.cibuildwheel.linux]
Expand All @@ -189,7 +188,7 @@ manylinux-x86_64-image = "manylinux2014"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
before-all = ["brew install llvm libomp"]
test-requires = ["nanopyx[all]"]
test-requires = ["nanopyx[test]"]
#test-command = "pytest -n=1 --timeout=1200 {project}/tests"
# #repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
# repair-wheel-command = "delocate-wheel -w {dest_dir} -v {wheel}"
Expand All @@ -203,7 +202,7 @@ test-requires = ["nanopyx[all]"]

[tool.cibuildwheel.windows]
archs = ["AMD64"]
test-requires = ["nanopyx[all]"]
test-requires = ["nanopyx[test]"]
#test-command = "pytest -n=0 --timeout=1200 {project}\\tests"
# before-build = "pip install delvewheel"
# repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
Expand Down
8 changes: 4 additions & 4 deletions tests/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# tag-start: test_interpolation_nearest_neighbor_ShiftAndMagnify
def test_interpolation_nearest_neighbor_ShiftAndMagnify(plt):
def test_interpolation_nearest_neighbor_ShiftAndMagnify():
M = 4
nFrames = 3
image = get_simplex_noise(64, 32, frames=nFrames, amplitude=1000)
Expand Down Expand Up @@ -45,7 +45,7 @@ def test_interpolation_nearest_neighbor_ShiftAndMagnify(plt):


# tag-copy: test_interpolation_nearest_neighbor_ShiftAndMagnify; replace("nearest_neighbor", "bicubic"); replace("NNShiftAndMagnify", "BCShiftAndMagnify")
def test_interpolation_bicubic_ShiftAndMagnify(plt):
def test_interpolation_bicubic_ShiftAndMagnify():
M = 4
nFrames = 3
image = get_simplex_noise(64, 32, frames=nFrames, amplitude=1000)
Expand Down Expand Up @@ -84,7 +84,7 @@ def test_interpolation_bicubic_ShiftAndMagnify(plt):


# tag-copy: test_interpolation_nearest_neighbor_ShiftAndMagnify; replace("nearest_neighbor", "catmull_rom"); replace("NNShiftAndMagnify", "CRShiftAndMagnify")
def test_interpolation_catmull_rom_ShiftAndMagnify(plt):
def test_interpolation_catmull_rom_ShiftAndMagnify():
M = 4
nFrames = 3
image = get_simplex_noise(64, 32, frames=nFrames, amplitude=1000)
Expand Down Expand Up @@ -123,7 +123,7 @@ def test_interpolation_catmull_rom_ShiftAndMagnify(plt):


# tag-copy: test_interpolation_nearest_neighbor_ShiftAndMagnify; replace("nearest_neighbor", "lanczos"); replace("NNShiftAndMagnify", "LZShiftAndMagnify")
def test_interpolation_lanczos_ShiftAndMagnify(plt):
def test_interpolation_lanczos_ShiftAndMagnify():
M = 4
nFrames = 3
image = get_simplex_noise(64, 32, frames=nFrames, amplitude=1000)
Expand Down

0 comments on commit 4dd43e9

Please sign in to comment.