Skip to content

Commit

Permalink
#217: Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Apr 8, 2021
1 parent 0601fb2 commit 6eedca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion datagateway_api/common/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def create_backend(backend_type):
elif backend_type == "python_icat":
backend = PythonICATBackend()
else:
# Might turn to a warning so the abstract class can be tested?
sys.exit(f"Invalid config value '{backend_type}' for config option backend")

return backend
4 changes: 3 additions & 1 deletion test/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def test_backend_creation(self, backend_name, backend_type):
assert type(test_backend) == backend_type

def test_abstract_class(self):
"""Test the `Backend` abstract class has all the required classes for the API"""
"""
Test the `Backend` abstract class has all required abstract methods for the API
"""
Backend.__abstractmethods__ = set()

class DummyBackend(Backend):
Expand Down

0 comments on commit 6eedca5

Please sign in to comment.