Skip to content

Commit

Permalink
Remove extraneous coding= from tests - Python3 is always UTF8.
Browse files Browse the repository at this point in the history
fixes #8223
[nocoverage]
  • Loading branch information
ggainey committed Feb 15, 2021
1 parent ea9dc37 commit 12035d3
Show file tree
Hide file tree
Showing 24 changed files with 1 addition and 23 deletions.
1 change: 1 addition & 0 deletions CHANGES/8223.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed extraneous coding= directive from test-files.
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# coding=utf-8
"""Tests for file plugin."""
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# coding=utf-8
"""Tests that communicate with file plugin via the v3 API."""
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_advisory_upload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that perform actions over advisory content unit upload."""
import os
import json
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_character_encoding.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests for Pulp's characters encoding."""
from urllib.parse import urljoin

Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_consume_content.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Verify whether package manager, yum/dnf, can consume content from Pulp."""
import unittest
import itertools
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_copy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that sync rpm plugin repositories."""
from random import choice
from requests.exceptions import HTTPError
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_crud_content_unit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that perform actions over content unit."""
import requests

Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_crud_remotes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that CRUD rpm remotes."""
from random import choice

Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_distribution_tree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests distribution trees."""

from pulp_smash import config
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_download_content.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that verify download of content served by Pulp."""
import hashlib
from random import choice
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_download_policies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests for Pulp`s download policies."""
from pulp_smash.pulp3.bindings import PulpTestCase, monitor_task
from pulp_smash.pulp3.utils import gen_repo, get_added_content_summary, get_content_summary
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_fips_workflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that create/sync/distribute/publish MANY rpm plugin repositories."""
import os
import re
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_publish.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that publish rpm plugin repositories."""
import gzip
import os
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_pulp_to_pulp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that verify download of content served by Pulp."""
from pulp_smash.pulp3.bindings import PulpTestCase, monitor_task
from pulp_smash.pulp3.constants import ON_DEMAND_DOWNLOAD_POLICIES
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_pulpexport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""
Tests PulpExporter and PulpExport functionality.
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_retention_policy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests for the retention policy feature of repositories."""

from collections import defaultdict
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that sync rpm plugin repositories."""
import os
import unittest
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/api/test_upload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that perform actions over content unit."""
import os
from tempfile import NamedTemporaryFile
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Constants for Pulp RPM plugin tests."""
from urllib.parse import urljoin

Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/functional/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Utilities for tests for the rpm plugin."""
import os
import requests
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/performance/test_publish.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that publish rpm plugin repositories."""
import unittest
from datetime import datetime
Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/performance/test_pulp_to_pulp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that verify download of content served by Pulp."""
import unittest

Expand Down
1 change: 0 additions & 1 deletion pulp_rpm/tests/performance/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
"""Tests that sync rpm plugin repositories."""
import os
import unittest
Expand Down

0 comments on commit 12035d3

Please sign in to comment.