-
Notifications
You must be signed in to change notification settings - Fork 52
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
Extends tests for ModuleStream.depends_on_stream() #203
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -682,7 +682,6 @@ def test_v2_yaml(self): | |
|
||
assert 'rawhide' in stream.get_servicelevel_names() | ||
assert 'production' in stream.get_servicelevel_names() | ||
|
||
sl = stream.get_servicelevel('rawhide') | ||
assert sl is not None | ||
assert sl.props.name == 'rawhide' | ||
|
@@ -1035,8 +1034,16 @@ def test_depends_on_stream(self): | |
stream.build_depends_on_stream( | ||
'platform', 'f28'), False) | ||
|
||
self.assertEqual(stream.depends_on_stream('base', 'f30'), False) | ||
self.assertEqual(stream.depends_on_stream('base', 'f30'), False) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you removing these two tests? Though, the second one should have been |
||
self.assertEqual( | ||
stream.depends_on_stream( | ||
'base', ''), False) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you misunderstood the requirement here. We don't need tests for a stream name being the empty string. We need a new requires/buildrequires in the v2 YAML document. Something like
This test is ONLY for ModuleStreamV2, since there is no way to represent this in the ModuleStreamV1 YAML. |
||
self.assertEqual( | ||
stream.build_depends_on_stream( | ||
'base', ''), False) | ||
|
||
ret = stream.build_depends_on_stream( | ||
'platform', '') | ||
assert (ret is True or ret is False) | ||
|
||
|
||
if __name__ == '__main__': | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why delete this line?