mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-10 22:29:44 +08:00
Move some of the logic in get_prefixed_version to a ModuleBuild static method
The logic used to parse the stream version will need to be reused elsewhere to support the filtering and ordering of a base module stream version.
This commit is contained in:
@@ -93,6 +93,11 @@ class TestModels:
|
||||
build_one = ModuleBuild.query.get(2)
|
||||
assert build_one.siblings == [3, 4]
|
||||
|
||||
def test_get_stream_version(self):
|
||||
"""Test the ModuleBuild.get_stream_version method when right_pad is True."""
|
||||
assert ModuleBuild.get_stream_version('f27') == 270000
|
||||
assert ModuleBuild.get_stream_version('f27.02.30') == 270230
|
||||
|
||||
|
||||
class TestModelsGetStreamsContexts:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user