From 0e5805efd2044da62826506a2946d68f37087bfb Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Sat, 28 Mar 2026 23:14:31 -0400 Subject: [PATCH] 'two-browser' tag separates out tests that run multiple browsers in pipeline so that --parallel tests don't interfere w. loading of one or more of such windows; both FTs.test_sharing & woodpecker.yaml updated accordingly --- .woodpecker.yaml | 3 ++- src/functional_tests/test_sharing.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 94e2ec6..4e5f5fd 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -37,7 +37,8 @@ steps: - pip install -r requirements.txt - cd ./src - python manage.py collectstatic --noinput - - python manage.py test functional_tests --parallel --exclude-tag=channels + - python manage.py test functional_tests --parallel --exclude-tag=channels --exclude-tag=two-browser + - python manage.py test functional_tests --tag=two-browser - python manage.py test functional_tests --tag=channels when: - event: push diff --git a/src/functional_tests/test_sharing.py b/src/functional_tests/test_sharing.py index 0e31a78..98bc7eb 100644 --- a/src/functional_tests/test_sharing.py +++ b/src/functional_tests/test_sharing.py @@ -1,6 +1,7 @@ import os from django.conf import settings +from django.test import tag from selenium import webdriver from selenium.webdriver.common.by import By @@ -19,6 +20,7 @@ def quit_if_possible(browser): # Test mdls class SharingTest(FunctionalTest): + @tag("two-browser") def test_can_share_a_note_with_another_user(self): self.create_pre_authenticated_session("disco@test.io") disco_browser = self.browser