@@ -97,13 +97,14 @@ def test_release_candidate_non_default_python(self):
97
97
self .assertEqual (base_version , 'v0.53.0-rc.1' )
98
98
99
99
output = prep_tags (os .environ , base_version , is_release_candidate )
100
+ version_with_python = f'{ base_version } -python{ NON_DEFAULT_PYTHON_VERSION } '
100
101
101
102
self .assertNotIn ('slack-notification-version' , output )
102
- self .assertEqual (output ['version' ], base_version )
103
+ self .assertEqual (output ['version' ], version_with_python )
103
104
self .assertEqual (output ['login-dockerhub' ], 'true' )
104
105
self .assertEqual (output ['login-ghcr' ], 'false' )
105
- self .assertEqual (output ['tags' ], 'dont-push--local-only ' )
106
- self .assertEqual (output ['push' ], 'false ' )
106
+ self .assertEqual (output ['tags' ], f'mock_image: { version_with_python } ' )
107
+ self .assertEqual (output ['push' ], 'true ' )
107
108
self .assertEqual (output ['dockerfile' ], 'Dockerfile' )
108
109
109
110
def test_release_candidate_default_python (self ):
@@ -127,12 +128,13 @@ def test_release_candidate_default_python(self):
127
128
self .assertEqual (base_version , 'v0.53.0-rc.1' )
128
129
129
130
output = prep_tags (os .environ , base_version , is_release_candidate )
131
+ version_with_python = f'{ base_version } -python{ DEFAULT_PYTHON_VERSION } '
130
132
131
133
self .assertEqual (output ['slack-notification-version' ], base_version )
132
- self .assertEqual (output ['version' ], base_version )
134
+ self .assertEqual (output ['version' ], version_with_python )
133
135
self .assertEqual (output ['login-dockerhub' ], 'true' )
134
136
self .assertEqual (output ['login-ghcr' ], 'false' )
135
- self .assertEqual (output ['tags' ], ' mock_image:v0.53.0-rc.1' )
137
+ self .assertEqual (output ['tags' ], f'mock_image: { version_with_python } , mock_image:v0.53.0-rc.1' )
136
138
self .assertEqual (output ['push' ], 'true' )
137
139
self .assertEqual (output ['dockerfile' ], 'Dockerfile' )
138
140
0 commit comments