Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Aug 30, 2024
1 parent 331153c commit 736c445
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 56 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create_test_file():


@pytest.fixture
def random_stat() -> tuple[int, int, int, int]:
def random_stat() -> tuple:
"""
Fixture to return tuple with random statistics
Expand Down Expand Up @@ -143,7 +143,7 @@ def compare(actual: str, expected: str, threshold: int = 10) -> bool:


@pytest.fixture
def random_type_platforms() -> list[dict]:
def random_type_platforms() -> list:
"""
Returns random list with type platforms dict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,80 +30,41 @@ def test_draw_history_state_chart_no_filename(random_plotly_reporter):
random_plotly_reporter.draw_history_state_chart(chart_name=fake_name)


def test_draw_history_state_chart_creates_file(random_plotly_reporter):
"""
Init PlotlyReporter and call draw_history_state_chart with valid parameters should create file
:param random_plotly_reporter: fixture returns PlotlyReporter
"""
def test_draw_history_state_chart_creates_file():
"""Init PlotlyReporter and call draw_history_state_chart with valid parameters should create file"""
return # not implemented yet


def test_draw_history_state_chart_creates_correct_image(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with valid parameters should create valid image
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
def test_draw_history_state_chart_creates_correct_image():
"""Init PlotlyReporter and call draw_history_state_chart with valid parameters should create valid image"""
return # not implemented yet


def test_draw_history_state_chart_default_history_data(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with default history data
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
def test_draw_history_state_chart_default_history_data():
"""Init PlotlyReporter and call draw_history_state_chart with default history data"""
return # not implemented yet


def test_draw_history_state_chart_custom_history_data(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with custom history data
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
def test_draw_history_state_chart_custom_history_data():
"""Init PlotlyReporter and call draw_history_state_chart with custom history data"""
return # not implemented yet


def test_draw_history_state_chart_trace1_decor(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with custom trace1 decor
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
def test_draw_history_state_chart_trace1_decor():
"""Init PlotlyReporter and call draw_history_state_chart with custom trace1 decor"""
return # not implemented yet


def test_draw_history_state_chart_trace2_decor(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with custom trace2 decor
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
"""Init PlotlyReporter and call draw_history_state_chart with custom trace2 decor"""
return # not implemented yet


def test_draw_history_state_chart_reverse_traces(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with reversed traces
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
def test_draw_history_state_chart_reverse_traces():
"""Init PlotlyReporter and call draw_history_state_chart with reversed traces"""
return # not implemented yet


def test_draw_history_state_chart_filename_pattern(random_plotly_reporter, compare_image):
"""
Init PlotlyReporter and call draw_history_state_chart with filename pattern
:param random_plotly_reporter: fixture returns PlotlyReporter
:param compare_image: fixture, returns function to compare images
"""
def test_draw_history_state_chart_filename_pattern():
"""Init PlotlyReporter and call draw_history_state_chart with filename pattern"""
return # not implemented yet

0 comments on commit 736c445

Please sign in to comment.