Skip to content

Commit

Permalink
Fixed test extension file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 16, 2020
1 parent 91d887c commit b00359c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/test_server_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,23 @@ def test_find_instances_in_module(lt_extension):


def test_find_extensions_in_file(extensions_path):
test_file = os.path.join(extensions_path, "test_extension.py")
test_file = os.path.join(extensions_path, "extension.py")

found_extensions = extensions.find_extensions_in_file(test_file)
assert len(found_extensions) == 1
assert found_extensions[0].name == "org.labthings.tests.extension"


def test_find_extensions_in_file_explicit_list(extensions_path):
test_file = os.path.join(extensions_path, "test_extension_explicit_list.py")
test_file = os.path.join(extensions_path, "extension_explicit_list.py")

found_extensions = extensions.find_extensions_in_file(test_file)
assert len(found_extensions) == 1
assert found_extensions[0].name == "org.labthings.tests.extension"


def test_find_extensions_in_file_exception(extensions_path):
test_file = os.path.join(extensions_path, "test_extension_exception.py")
test_file = os.path.join(extensions_path, "extension_exception.py")

found_extensions = extensions.find_extensions_in_file(test_file)
assert found_extensions == []
Expand Down

0 comments on commit b00359c

Please sign in to comment.