| |
@@ -1831,8 +1831,7 @@
|
| |
override_expiration_date = utcnow + timedelta(days=7)
|
| |
build_nvr = 'somepkg-1.54-2.fc28'
|
| |
build_override = {
|
| |
- 'expiration_date':
|
| |
- override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
+ 'expiration_date': override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
'nvr': build_nvr,
|
| |
'notes': 'build for other package',
|
| |
'build': {'nvr': build_nvr},
|
| |
@@ -1886,8 +1885,7 @@
|
| |
override_expiration_date = utcnow + timedelta(days=7)
|
| |
build_nvr = 'somepkg-1.54-2.fc28'
|
| |
build_override = {
|
| |
- 'expiration_date':
|
| |
- override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
+ 'expiration_date': override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
'nvr': build_nvr,
|
| |
'notes': 'build for other package',
|
| |
'build': {'nvr': build_nvr},
|
| |
@@ -1946,8 +1944,7 @@
|
| |
override_expiration_date = utcnow - timedelta(days=7)
|
| |
build_nvr = 'somepkg-1.54-2.fc28'
|
| |
build_override = {
|
| |
- 'expiration_date':
|
| |
- override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
+ 'expiration_date': override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
'nvr': build_nvr,
|
| |
'notes': 'build for other package',
|
| |
'build': {'nvr': build_nvr},
|
| |
@@ -2008,8 +2005,7 @@
|
| |
list_overrides.return_value = {
|
| |
'total': 1,
|
| |
'overrides': [{
|
| |
- 'expiration_date':
|
| |
- override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
+ 'expiration_date': override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
'nvr': build_nvr,
|
| |
'notes': 'build for other package',
|
| |
'build': {'nvr': build_nvr},
|
| |
@@ -2043,8 +2039,7 @@
|
| |
|
| |
build_nvr = 'somepkg-1.54-2.fc28'
|
| |
build_override = {
|
| |
- 'expiration_date':
|
| |
- override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
+ 'expiration_date': override_expiration_date.strftime('%Y-%m-%d %H:%M:%S'),
|
| |
'nvr': build_nvr,
|
| |
'notes': 'build for other package',
|
| |
'build': {'nvr': build_nvr},
|
| |
@@ -2326,7 +2321,7 @@
|
| |
return_value={
|
| |
'epel': ['el6', 'epel7'],
|
| |
'fedora': ['f29', 'f28']
|
| |
- })
|
| |
+ })
|
| |
class TestReleasesInfo(CliTestCase):
|
| |
"""Test command releases-info"""
|
| |
|
| |
Prepared dockerfiles for creating a testing environment in containers.
Two containers are prepared. The first for normal Python3 and the second one runs in CentOS 7.
A tox configuration is customized for supported versions of Python.
JIRA: RHELCMP-4962