Skip to content

Commit

Permalink
name python scripts so pytest doesn't detect them
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jun 5, 2024
1 parent 3da1aa2 commit 3c4cae2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ line-length = 90

[tool.mypy]
files = ["test"]
strict_optional = false
allow_redefinition = true
show_error_context = false
show_column_numbers = true
ignore_missing_imports = true
6 changes: 3 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ set_property(TEST string_read PROPERTY REQUIRED_FILES ${string_file})
# --- attributes

add_test(NAME PythonAttributes
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_attributes.py ${attr_file}
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate_attributes.py ${attr_file}
)

set_property(TEST PythonAttributes PROPERTY FIXTURES_SETUP h5attr)
Expand All @@ -124,15 +124,15 @@ set_property(TEST attributes_read PROPERTY REQUIRED_FILES ${attr_file})
# --- shape

add_test(NAME PythonShape
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shape.py ${shape_file}
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check_shape.py ${shape_file}
)

set_property(TEST PythonShape PROPERTY REQUIRED_FILES ${shape_file})
set_property(TEST PythonShape PROPERTY FIXTURES_REQUIRED h5shape)

# --- String
add_test(NAME PythonString
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_string.py ${string_file}
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate_string_data.py ${string_file}
)

set_property(TEST PythonString PROPERTY FIXTURES_SETUP h5str)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3c4cae2

Please sign in to comment.