Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unittest: use the new collection_name() name #48

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage==4.5.4
4 changes: 2 additions & 2 deletions tests/unit/module_utils/test_turbo_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import subprocess
import ansible.module_utils.basic
from ansible_collections.cloud.common.plugins.module_utils.turbo.module import (
collection_name,
get_collection_name_from_path,
connect,
start_daemon,
)
Expand All @@ -31,7 +31,7 @@ def mocked_func():
return my_module_path

monkeypatch.setattr(ansible.module_utils.basic, "get_module_path", mocked_func)
assert collection_name() == my_collection_name
assert get_collection_name_from_path() == my_collection_name


def test_start_daemon(monkeypatch):
Expand Down