Skip to content

Commit

Permalink
Fix CI issue. Though this is not related to the current changes for t…
Browse files Browse the repository at this point in the history
…he feature fix
  • Loading branch information
kumarashit committed Jul 7, 2020
1 parent 7674d77 commit a66fa65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions orchestration/db/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from sqlalchemy.sql.expression import and_
from orchestration.utils.config import logger


# session_scope can be used cleanly in transaction,
# references the officel document of sqlalchemy.
@contextmanager
Expand Down
1 change: 1 addition & 0 deletions tests/unit/db/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_list_services(mock_session):
result = api.list_services(None)
assert len(result) == 0


# ------------------------Test for task------------------------------------
@mock.patch('uuid.uuid4')
@mock.patch('orchestration.db.api.session_scope')
Expand Down

0 comments on commit a66fa65

Please sign in to comment.