Skip to content

Commit 57774fb

Browse files
committed
Update test script inside cookiecutter template
correct importer prefix and remove ensemblestats for now.
1 parent 598f1a8 commit 57774fb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

{{cookiecutter.project_name}}/tests/test_{{cookiecutter.project_slug}}.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@ def test_plugins_discovery():
1616
if plugin_type == "importer":
1717
new_importers = ["{{cookiecutter.plugin_name }}"]
1818
for importer in new_importers:
19-
assert importer.replace("import_", "") in io_interface._importer_methods
19+
assert importer.replace("importer_", "") in io_interface._importer_methods
2020

2121
elif plugin_type == "diagnostic":
22-
new_dagnostics = ["{{cookiecutter.plugin_name }}"]
22+
new_diagnostics = ["{{cookiecutter.plugin_name }}"]
2323
for diagnostic in new_diagnostics:
2424
assert diagnostic in pp_interface._diagnostics_methods
25-
26-
elif plugin_type == "ensemblestat":
27-
new_ensemblestats = ["{{cookiecutter.plugin_name }}"]
28-
for ensemblestat in new_ensemblestats:
29-
assert ensemblestat in pp_interface._ensemblestats_methods
3025

3126
def test_importers_with_files():
3227
"""Additionally, you can test that your plugin correctly reads the corresponding

0 commit comments

Comments
 (0)