Skip to content
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

PLEASE IGNORE! Pre-release testing #2838

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ class BuildChrootResult(db.Model, helpers.Serializer):
)

name = db.Column(db.Text, nullable=False)
epoch = db.Column(db.Integer, default=0)
epoch = db.Column(db.Integer, default=None)
version = db.Column(db.Text, nullable=False)
release = db.Column(db.Text, nullable=False)
arch = db.Column(db.Text, nullable=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ class TestAPIv3BuildChrootsResults(CoprsTestCase):
@TransactionDecorator("u1")
@pytest.mark.usefixtures("f_users", "f_users_api", "f_coprs",
"f_mock_chroots", "f_builds", "f_db")
def test_build_chroot_built_packages(self):
@pytest.mark.parametrize("value", [None, 1, 11])
def test_build_chroot_built_packages(self, value):
"""
Test the endpoint for getting built packages (NEVRA dicts) for a given
build chroot.
"""
self.db.session.add(self.b1, self.b1_bc)

built_packages = {
"packages": [
{
"name": "hello",
"epoch": 0,
"epoch": value,
"version": "2.8",
"release": "1.fc33",
"arch": "x86_64"
Expand Down