Skip to content

Commit

Permalink
corrected tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julkaar9 committed Dec 23, 2022
1 parent 545e594 commit e198655
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Pynimate

[![PyPI](https://img.shields.io/pypi/v/pynimate?color=orange)](https://pypi.org/project/pynimate/)
![Tests](https://github.com/julkaar9/pynimate/actions/workflows/tests.yml/badge.svg)
[![License](https://img.shields.io/pypi/l/pynimate?color=green)](https://github.com/julkaar9/pynimate/blob/main/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def test_barplot_set_bar_color_error_col_mismatch(sample_bar_data1):
assert bar.datafier.bar_colors == bar_colors


def test_barplot_set_test_error_empty_text(sample_bar_data1):
def test_barplot_set_text_error_empty_text(sample_bar_data1):
with pytest.raises(AssertionError):
bar = Barplot(sample_bar_data1, "%Y-%m-%d", "3MS")
bar.set_text("text1")


def test_barplot_set_test_error_text_priority(sample_bar_data1):
def test_barplot_set_text_priority(sample_bar_data1):
bar = Barplot(sample_bar_data1, "%Y-%m-%d", "3MS")
bar.set_text("text1", text="Test", callback=lambda *args: "Test")
assert "s" not in bar.text_collection["text1"][1]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_datafier.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ def test_datafier_get_prepared_data(sample_bar_data1):
}
).set_index("time")
assert dfr.df_ranks.equals(df_ranks)
# assert dfr.data.equals(data)
assert dfr.data.equals(data)
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ def test_human_readable_k():
assert human_readable(21014, 3) == "21.014K"


def test_human_readable_k():
def test_human_readable_m():
assert human_readable(5241725, 1) == "5.2M"

0 comments on commit e198655

Please sign in to comment.