Skip to content

Commit 30a3f30

Browse files
Merge pull request Schiphol-Hub#6 from rok/master
Yaml loader warnings
2 parents 34978b9 + abe7807 commit 30a3f30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/conftest.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def slotfiles():
1515
slotfile_list = []
1616
for slotfile in slotfiles_files:
1717
with open(path_to_data + slotfile) as f:
18-
text = yaml.load(f.read())
18+
text = yaml.safe_load(f.read())
1919

2020
slotfile_list.append(text)
2121

@@ -25,30 +25,30 @@ def slotfiles():
2525
@pytest.fixture
2626
def expanding_slots():
2727
with open(path_to_data + "expanding_slots.yml") as f:
28-
slots = yaml.load(f.read())
28+
slots = yaml.safe_load(f.read())
2929

3030
return slots
3131

3232

3333
@pytest.fixture
3434
def sir_records():
3535
with open(path_to_data + "sir_records.yml") as f:
36-
slots = yaml.load(f.read())
36+
slots = yaml.safe_load(f.read())
3737

3838
return slots
3939

4040

4141
@pytest.fixture
4242
def sim_records():
4343
with open(path_to_data + "sim_records.yml") as f:
44-
slots = yaml.load(f.read())
44+
slots = yaml.safe_load(f.read())
4545

4646
return slots
4747

4848

4949
@pytest.fixture
5050
def aircraft_configuration_strings():
5151
with open(path_to_data + "aircraft_configuration_strings.yml") as f:
52-
aircraft_configuration_strings = yaml.load(f.read())
52+
aircraft_configuration_strings = yaml.safe_load(f.read())
5353

5454
return aircraft_configuration_strings

0 commit comments

Comments
 (0)