Skip to content

Commit 0c7bbe1

Browse files
committed
Fix encoding in test fixtures
1 parent 0dfe9e1 commit 0c7bbe1

20 files changed

+21
-21
lines changed

tests/agent_unittests/test_aws_utilization_caching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def no_token(cls):
3939

4040

4141
def _load_tests():
42-
with FIXTURE.open() as fh:
42+
with FIXTURE.open(encoding="utf-8") as fh:
4343
js = fh.read()
4444
return json.loads(js)
4545

tests/cross_agent/test_agent_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _default_settings():
4444

4545

4646
def _load_tests():
47-
with FIXTURE.open() as fh:
47+
with FIXTURE.open(encoding="utf-8") as fh:
4848
js = fh.read()
4949
return json.loads(js)
5050

tests/cross_agent/test_aws_utilization_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131
def _load_tests():
32-
with FIXTURE.open() as fh:
32+
with FIXTURE.open(encoding="utf-8") as fh:
3333
js = fh.read()
3434
return json.loads(js)
3535

tests/cross_agent/test_azure_utilization_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131
def _load_tests():
32-
with FIXTURE.open() as fh:
32+
with FIXTURE.open(encoding="utf-8") as fh:
3333
js = fh.read()
3434
return json.loads(js)
3535

tests/cross_agent/test_boot_id_utilization_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040

4141
def _load_tests():
42-
with FIXTURE.open() as fh:
42+
with FIXTURE.open(encoding="utf-8") as fh:
4343
js = fh.read()
4444
return json.loads(js)
4545

tests/cross_agent/test_cat_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def server():
6767

6868
def load_tests():
6969
result = []
70-
with FIXTURE.open() as fh:
70+
with FIXTURE.open(encoding="utf-8") as fh:
7171
tests = json.load(fh)
7272

7373
for test in tests:

tests/cross_agent/test_collector_hostname.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131
def _load_tests():
32-
with FIXTURE.open() as fh:
32+
with FIXTURE.open(encoding="utf-8") as fh:
3333
js = fh.read()
3434
return json.loads(js)
3535

tests/cross_agent/test_datastore_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141

4242
def _load_tests():
43-
with FIXTURE.open() as fh:
43+
with FIXTURE.open(encoding="utf-8") as fh:
4444
js = fh.read()
4545
return json.loads(js)
4646

tests/cross_agent/test_distributed_tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
def load_tests():
5454
result = []
55-
with FIXTURE.open() as fh:
55+
with FIXTURE.open(encoding="utf-8") as fh:
5656
tests = json.load(fh)
5757

5858
for test in tests:

tests/cross_agent/test_docker_container_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _load_docker_test_attributes():
2828
2929
"""
3030
test_cases = DOCKER_FIXTURE / "cases.json"
31-
with test_cases.open() as fh:
31+
with test_cases.open(encoding="utf-8") as fh:
3232
json_list = json.load(fh)
3333
docker_test_attributes = [(json_record["filename"], json_record["containerId"]) for json_record in json_list]
3434
return docker_test_attributes

0 commit comments

Comments
 (0)