Skip to content
Open
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
7 changes: 4 additions & 3 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import tmt
import tmt.base.core
import tmt.base.links
import tmt.base.plan
import tmt.log
import tmt.plugins
Expand Down Expand Up @@ -1706,7 +1707,7 @@ def test_jira_link_test_only(self, mock_config_tree, mock_jira) -> None:
test = tmt.Tree(logger=self.logger, path=self.tmp).tests(names=['tmp/test'])[0]
tmt.utils.jira.link(
tmt_objects=[test],
links=tmt.base.core.Links(data=['verifies:https://issues.redhat.com/browse/TT-262']),
links=tmt.base.links.Links(data=['verifies:https://issues.redhat.com/browse/TT-262']),
logger=self.logger,
)
result = mock_jira.return_value.add_simple_link.call_args.args[1]
Expand All @@ -1722,7 +1723,7 @@ def test_jira_link_test_plan_story(self, mock_config_tree, mock_jira) -> None:
story = tmt.Tree(logger=self.logger, path=self.tmp).stories(names=['tmp'])[0]
tmt.utils.jira.link(
tmt_objects=[test, plan, story],
links=tmt.base.core.Links(data=['verifies:https://issues.redhat.com/browse/TT-262']),
links=tmt.base.links.Links(data=['verifies:https://issues.redhat.com/browse/TT-262']),
logger=self.logger,
)
result = mock_jira.return_value.add_simple_link.call_args.args[1]
Expand All @@ -1745,7 +1746,7 @@ def test_create_link_relation(self, mock_config_tree, mock_jira) -> None:
test = tmt.Tree(logger=self.logger, path=self.tmp).tests(names=['tmp/test'])[0]
tmt.utils.jira.link(
tmt_objects=[test],
links=tmt.base.core.Links(data=['verifies:https://issues.redhat.com/browse/TT-262']),
links=tmt.base.links.Links(data=['verifies:https://issues.redhat.com/browse/TT-262']),
logger=self.logger,
)
# Load the test object again with the link present
Expand Down
3 changes: 1 addition & 2 deletions tmt/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
DependencyFile,
DependencyFmfId,
DependencySimple,
Link,
Links,
Status,
Story,
Test,
Tree,
)
from tmt.base.links import Link, Links
from tmt.base.plan import Plan
from tmt.base.run import Run

Expand Down
Loading
Loading