From 82212136bc710b980ed92695a80c80beb0e04f8b Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Fri, 13 Oct 2023 00:57:44 +0100 Subject: [PATCH] fix tests --- .github/workflows/codeball.yml | 12 ------------ tests/test_factories.py | 6 +++--- 2 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/codeball.yml diff --git a/.github/workflows/codeball.yml b/.github/workflows/codeball.yml deleted file mode 100644 index ea0bf4a8..00000000 --- a/.github/workflows/codeball.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Codeball -on: [pull_request] - -jobs: - codeball_job: - runs-on: ubuntu-latest - name: Codeball - steps: - # Run Codeball on all new Pull Requests 🚀 - # For customizations and more documentation, see https://github.com/sturdy-dev/codeball-action - - name: Codeball - uses: sturdy-dev/codeball-action@v2 diff --git a/tests/test_factories.py b/tests/test_factories.py index 05cac7a7..d0410f93 100644 --- a/tests/test_factories.py +++ b/tests/test_factories.py @@ -8,17 +8,17 @@ def test_num_int() -> None: assert factories.num("1") == 1 - assert type(factories.num("1")) is int + assert isinstance(factories.num("1"), int) def test_num_intf() -> None: assert factories.num("1.0") == 1 - assert type(factories.num("1.0")) is int + assert isinstance(factories.num("1.0"), int) def test_num_float() -> None: assert factories.num("1.1") == 1.1 - assert type(factories.num("1.1")) is float + assert isinstance(factories.num("1.1"), float) def test_orient_true() -> None: