Skip to content

Commit 3c4cae2

Browse files
committed
name python scripts so pytest doesn't detect them
1 parent 3da1aa2 commit 3c4cae2

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@ line-length = 90
77

88
[tool.mypy]
99
files = ["test"]
10-
strict_optional = false
11-
allow_redefinition = true
12-
show_error_context = false
13-
show_column_numbers = true
10+
ignore_missing_imports = true

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ set_property(TEST string_read PROPERTY REQUIRED_FILES ${string_file})
113113
# --- attributes
114114

115115
add_test(NAME PythonAttributes
116-
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_attributes.py ${attr_file}
116+
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate_attributes.py ${attr_file}
117117
)
118118

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

126126
add_test(NAME PythonShape
127-
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shape.py ${shape_file}
127+
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check_shape.py ${shape_file}
128128
)
129129

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

133133
# --- String
134134
add_test(NAME PythonString
135-
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_string.py ${string_file}
135+
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate_string_data.py ${string_file}
136136
)
137137

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

0 commit comments

Comments
 (0)