Skip to content

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Oct 19, 2022
1 parent effd64e commit 06ca152
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions tests/back_compat/test_import_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@


class TestImportStructure(TestCase):
"""Test whether the classes/modules imported from pynwb in version 2.1.1 are still accessible.
NOTE: this test was needed to ensure backward compatibility of "import pynwb" after changes to the package file
hierarchy in PyNWB 2.2.0 around validate.py (see https://github.com/NeurodataWithoutBorders/pynwb/pull/1511).
"""
def test_outer_import_structure(self):
current_structure = dir(pynwb)
expected_structure = [
Expand Down
4 changes: 1 addition & 3 deletions tests/validation/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class TestValidateCLI(TestCase):
# NOTE the run_coverage.yml GitHub Action runs "python -m coverage combine" to
# combine the individual coverage reprots into one .coverage file.

# TODO test validation on files with cached extensions

def test_validate_file_no_cache(self):
"""Test that validating a file with no cached spec against the core namespace succeeds."""
result = subprocess.run(["coverage", "run", "-p", "-m", "pynwb.validate",
Expand Down Expand Up @@ -183,7 +181,7 @@ def test_validate_file_list_namespaces_core(self):
self.assertRegex(result.stdout.decode('utf-8'), stdout_regex)

def test_validate_file_list_namespaces_extension(self):
"""Test listing namespaces from a file"""
"""Test listing namespaces from a file with an extension"""
result = subprocess.run(
[
"coverage", "run", "-p", "-m", "pynwb.validate", "tests/back_compat/2.1.0_nwbfile_with_extension.nwb",
Expand Down

0 comments on commit 06ca152

Please sign in to comment.