From 417b026d058912cffc081dad28a6a71f2ec3c458 Mon Sep 17 00:00:00 2001 From: Stepland <16676308+Stepland@users.noreply.github.com> Date: Fri, 28 May 2021 01:23:35 +0200 Subject: [PATCH] [konami] only test for 1/4 and 1/3 times --- jubeatools/formats/konami/eve/tests/test_eve.py | 2 +- jubeatools/formats/konami/jbsq/test_jbsq.py | 4 ++-- jubeatools/formats/konami/testutils.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jubeatools/formats/konami/eve/tests/test_eve.py b/jubeatools/formats/konami/eve/tests/test_eve.py index d9e82c2..2ac2607 100644 --- a/jubeatools/formats/konami/eve/tests/test_eve.py +++ b/jubeatools/formats/konami/eve/tests/test_eve.py @@ -13,5 +13,5 @@ def test_that_full_chart_roundtrips(song: song.Song) -> None: song, temp_path=open_temp_dir(), bytes_decoder=lambda b: b.decode("ascii"), - load_options={"beat_snap": 24}, + load_options={"beat_snap": 12}, ) diff --git a/jubeatools/formats/konami/jbsq/test_jbsq.py b/jubeatools/formats/konami/jbsq/test_jbsq.py index d8b0749..882149e 100644 --- a/jubeatools/formats/konami/jbsq/test_jbsq.py +++ b/jubeatools/formats/konami/jbsq/test_jbsq.py @@ -1,4 +1,4 @@ -from hypothesis import given +from hypothesis import given, reproduce_failure from jubeatools import song from jubeatools.formats import Format @@ -15,5 +15,5 @@ def test_that_full_chart_roundtrips(song: song.Song) -> None: song, temp_path=open_temp_dir(), bytes_decoder=lambda b: str(jbsq.parse(b)), - load_options={"beat_snap": 24}, + load_options={"beat_snap": 12}, ) diff --git a/jubeatools/formats/konami/testutils.py b/jubeatools/formats/konami/testutils.py index d26f447..0da2934 100644 --- a/jubeatools/formats/konami/testutils.py +++ b/jubeatools/formats/konami/testutils.py @@ -11,7 +11,7 @@ from jubeatools.testutils import strategies as jbst from jubeatools.testutils.typing import DrawFunc simple_beat_strat = jbst.beat_time( - denominator_strat=st.sampled_from([4, 8, 3]), max_section=10 + denominator_strat=st.sampled_from([4, 3]), max_section=10 ) @@ -29,7 +29,7 @@ def eve_compatible_song(draw: DrawFunc) -> song.Song: time_strat=jbst.beat_time( min_section=1, max_section=10, - denominator_strat=st.sampled_from([4, 8, 3]), + denominator_strat=st.sampled_from([4, 3]), ), ), notes_strat=jbst.notes( @@ -40,7 +40,7 @@ def eve_compatible_song(draw: DrawFunc) -> song.Song: duration_strat=jbst.beat_time( min_numerator=1, max_section=3, - denominator_strat=st.sampled_from([4, 8, 3]), + denominator_strat=st.sampled_from([4, 3]), ), ), ),