diff --git a/.github/workflows/app-errors-tests.yml b/.github/workflows/app-errors-tests.yml index f50878a..5b83474 100644 --- a/.github/workflows/app-errors-tests.yml +++ b/.github/workflows/app-errors-tests.yml @@ -28,7 +28,7 @@ jobs: cache-dependency-path: app_errors/requirements.txt - name: Install dependencies - run: pip install -r requirements.txt && pip install --no-deps -e . + run: pip install --no-deps ../kuhy_credit && pip install -r requirements.txt && pip install --no-deps -e . - name: Run tests run: python -m pytest -v diff --git a/.github/workflows/freedays-tests.yml b/.github/workflows/freedays-tests.yml index ab1459b..f9d9a35 100644 --- a/.github/workflows/freedays-tests.yml +++ b/.github/workflows/freedays-tests.yml @@ -36,7 +36,7 @@ jobs: run: pip install ../crdt-sync - name: Install dependencies - run: pip install -r requirements.txt && pip install --no-deps -e . + run: pip install --no-deps ../kuhy_credit && pip install -r requirements.txt && pip install --no-deps -e . # No display needed: freedays draws nothing. It is policy, a JSON file # and a CLI. diff --git a/.github/workflows/sickdays-tests.yml b/.github/workflows/sickdays-tests.yml index 47539df..40791cf 100644 --- a/.github/workflows/sickdays-tests.yml +++ b/.github/workflows/sickdays-tests.yml @@ -33,7 +33,7 @@ jobs: # importing it pulls in tkinter, and this job has no display precisely # because sickdays must work without one. - name: Install the sibling packages - run: pip install ../crdt-sync && pip install --no-deps ../freedays + run: pip install ../crdt-sync && pip install --no-deps ../freedays ../kuhy_credit - name: Install dependencies run: pip install -r requirements.txt && pip install --no-deps -e . diff --git a/earned_time/earned_time/tests/test_tutor.py b/earned_time/earned_time/tests/test_tutor.py index 1f6e6fb..6d47616 100644 --- a/earned_time/earned_time/tests/test_tutor.py +++ b/earned_time/earned_time/tests/test_tutor.py @@ -49,7 +49,7 @@ def test_tutor_from_is_the_day_after_the_deploy() -> None: def test_registry_switches_on_tutor_from() -> None: assert earners_for(EVE) is not TUTOR_EARNERS # the waiver (ANKI_WAIVED_FROM) - assert earners_for(None) is earners_for(datetime.now().astimezone().date()) + assert earners_for(None) == earners_for(datetime.now().astimezone().date()) assert earners_for(TUTOR_FROM) is TUTOR_EARNERS assert "anki" not in {e.name for e in TUTOR_EARNERS} assert ladder_for(EVE) is None # the eve is pre-ladder diff --git a/gatelock/gatelock/tests/test_error_spool.py b/gatelock/gatelock/tests/test_error_spool.py index 04f4ef4..1e1976d 100644 --- a/gatelock/gatelock/tests/test_error_spool.py +++ b/gatelock/gatelock/tests/test_error_spool.py @@ -105,7 +105,9 @@ def test_slow_wait_over_threshold_is_written( def test_slow_wait_measures_monotonic_time(tmp_path: Path) -> None: wall, mono = Clock(), Clock() - rep = Reporter(app="leetcode-guard", repo="r", spool=tmp_path, clock=wall, monotonic=mono) + rep = Reporter( + app="leetcode-guard", repo="r", spool=tmp_path, clock=wall, monotonic=mono + ) with rep.wait("op"): wall.t += 1.5 # a clock step, not a wait mono.t += 0.2