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

Proper decoding of stdout in condensed download committed or not test #1172

Merged
merged 1 commit into from
Jun 15, 2021
Merged
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
10 changes: 4 additions & 6 deletions test/test_condensed_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
# SPDX-License-Identifier: GPL-3.0-or-later

"""
Condensed Downloads Test
Test to check if condensed downloads are committed
"""
import importlib
import subprocess
from test.test_data import __all__ as all_test_name

import pytest


# Test to check condensed files are commited according to the package test data of checkers
# Test to check condensed files are committed according to the package test data of checkers
def test_condensed_downloads():
test_data = list(
map(lambda x: importlib.import_module(f"test.test_data.{x}"), all_test_name)
Expand All @@ -30,8 +28,8 @@ def test_condensed_downloads():
stdout=subprocess.PIPE,
)

condensed_downloads = str(condensed_downloads.stdout)[2:-1].split("\\n")
condensed_downloads = condensed_downloads.stdout.decode("utf-8")

assert all(
item in condensed_downloads for item in package_names
), "Condensed downloads not commited"
), "Condensed downloads are not commited"