Skip to content

Commit

Permalink
fix replace mkdir with makedirs
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Dec 16, 2024
1 parent ac241b1 commit ea184dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_aircraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ def test_prepare_image_for_all_planes(model, lcd, resources, img_precision, requ
set_bios_during_test(aircraft_model, bios_pairs)
img = aircraft_model.prepare_image()
ref_file_base_path = resources / platform / uname().release if platform == 'win32' else resources / platform
from os import mkdir
mkdir(path=ref_file_base_path, exist_ok=True)
from os import makedirs
makedirs(name=ref_file_base_path, exist_ok=True)
if uname().release == '2022Server':
img.save(ref_file_base_path / f'{model}_{lcd}_{type(aircraft_model).__name__}.png')
else:
Expand Down Expand Up @@ -364,8 +364,8 @@ def test_prepare_image_for_apache_wca_mode(model, resources, img_precision, requ
img = apache.prepare_image()
assert (Path(gettempdir()) / f'{type(apache).__name__}_999.png').exists()
ref_file_base_path = resources / platform / uname().release if platform == 'win32' else resources / platform
from os import mkdir
mkdir(path=ref_file_base_path, exist_ok=True)
from os import makedirs
makedirs(name=ref_file_base_path, exist_ok=True)
if uname().release == '2022Server':
img.save(ref_file_base_path / f'{model}_wca_mode.png')
else:
Expand Down Expand Up @@ -393,8 +393,8 @@ def test_apache_wca_more_then_one_screen_scrolled(model, resources, img_precisio
assert apache.warning_line == 3
img = apache.prepare_image()
ref_file_base_path = resources / platform / uname().release if platform == 'win32' else resources / platform
from os import mkdir
mkdir(path=ref_file_base_path, exist_ok=True)
from os import makedirs
makedirs(name=ref_file_base_path, exist_ok=True)
if uname().release == '2022Server':
img.save(ref_file_base_path / f'{model}_wca_mode_scroll_3.png')
else:
Expand All @@ -407,8 +407,8 @@ def test_apache_wca_more_then_one_screen_scrolled(model, resources, img_precisio
img = apache.prepare_image()
assert apache.warning_line == 1
ref_file_base_path = resources / platform / uname().release if platform == 'win32' else resources / platform
from os import mkdir
mkdir(path=ref_file_base_path, exist_ok=True)
from os import makedirs
makedirs(name=ref_file_base_path, exist_ok=True)
if uname().release == '2022Server':
img.save(ref_file_base_path / f'{model}_wca_mode_scroll_1.png')
else:
Expand Down

0 comments on commit ea184dc

Please sign in to comment.