From 5b9df0494b21a4da5c2f4c1bb5cb65efbb212a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sandstr=C3=B6m?= Date: Tue, 4 Jan 2022 12:19:03 +0100 Subject: [PATCH 01/12] Rename deploy step to publish --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd408f2..c1e09e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,7 @@ jobs: - name: Test run: | python runtests.py + lint-black: runs-on: ubuntu-latest needs: test @@ -36,6 +37,7 @@ jobs: options: "--check --verbose" src: "." version: "21.5b1" + lint-isort: runs-on: ubuntu-latest needs: test @@ -49,7 +51,8 @@ jobs: python -m pip install --upgrade pip pip install isort isort . --check-only - deploy: + + publish: runs-on: ubuntu-latest needs: [test, lint-black, lint-isort] steps: From d60c9083dbd62adc177f5bea30885372f21cd29b Mon Sep 17 00:00:00 2001 From: code-review-doctor Date: Tue, 15 Feb 2022 16:50:47 +0000 Subject: [PATCH 02/12] Fix issue avoid-misusing-assert-true found at https://codereview.doctor --- django_react_templatetags/tests/test_ssr_hypernova_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_react_templatetags/tests/test_ssr_hypernova_service.py b/django_react_templatetags/tests/test_ssr_hypernova_service.py index 671801c..d768659 100644 --- a/django_react_templatetags/tests/test_ssr_hypernova_service.py +++ b/django_react_templatetags/tests/test_ssr_hypernova_service.py @@ -202,7 +202,7 @@ def test_only_ssr_html_are_returned_on_no_placeholder(self, mocked): ).render(self.mocked_context) queue = self.mocked_context["REACT_COMPONENTS"] - self.assertTrue(len(queue), 1) + self.assertEqual(len(queue), 1) self.assertFalse(out.startswith('