Closed Bug 1818215 Opened 3 years ago Closed 3 months ago

[wdspec] Update tests for pytest asyncio markers

Categories

(Remote Protocol :: WebDriver BiDi, task, P3)

task

Tracking

(firefox150 fixed)

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: whimboo, Assigned: khalid.alhaddad98, Mentored)

Details

(Whiteboard: [webdriver:m19][webdriver:external][lang=py][wptsync upstream][webdriver:relnote])

Attachments

(2 files, 1 obsolete file)

In nearly all of our tests we currently use the @pytest.mark.asyncio marker for each and every test. This adds quite an overhead. Instead we can use a single pytestmark = pytest.mark.asyncio entry at the top of the file which will then automatically apply it to all the test methods within this module.

Affected tests are under:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/bidi/

Mentor: hskupin
Priority: -- → P3
Whiteboard: [lang=py]

Hello, I would like to work on this task, this is my first work however, any tips to start?

Flags: needinfo?(hskupin)

Thanks for having you here! And I'm happy to help / assist especially when it's your very first bug!

A good place to start is the documentation for new contributors that you can find here:
https://firefox-source-docs.mozilla.org/testing/marionette/NewContributors.html

For further questions don't hesitate to contact us as best on Matrix in the mentioned #webdriver channel.

Flags: needinfo?(hskupin)

The code now uses a single pytestmark = pytest.mark.asyncio instead of repeating @pytest.mark.asyncio for each test.

Assignee: nobody → 2prt0111
Status: NEW → ASSIGNED

Hi Washington. I would like to know if you have received the email from Phabricator about my code review and request for changes. If yes and you are facing troubles with the updates please let me know. Thanks!

Flags: needinfo?(2prt0111)

Yes I have received it, however i got caught up on some other things, I'll be updating it in this next days.

Flags: needinfo?(2prt0111)

Thank you for the reply and no worries when it takes longer. It's good that you got the email.

Washington, please let us know if you are still interested. Some additional time has passed by and the risk that the patch bitrots is high due to the activity on our side. If you still do not have the time just tell us, and we can pick it up. Thanks.

Flags: needinfo?(2prt0111)

There was not reply within the last 3 weeks. As such lets open up this bug for other interested contributors.

Assignee: 2prt0111 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(2prt0111)
Assignee: nobody → khalid.alhaddad98
Attachment #9363472 - Attachment is obsolete: true

Given that Julian started to review the patches lets set him as the mentor for this bug.

Mentor: hskupin → jdescottes
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Whiteboard: [lang=py] → [lang=py], [wptsync upstream error]
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Whiteboard: [lang=py], [wptsync upstream error] → [webdriver:m19][webdriver:external][lang=py][wptsync upstream error]
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58447 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m19][webdriver:external][lang=py][wptsync upstream error] → [webdriver:m19][webdriver:external][lang=py][wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Whiteboard: [webdriver:m19][webdriver:external][lang=py][wptsync upstream] → [webdriver:m19][webdriver:external][lang=py][wptsync upstream][webdriver-relnote]
Whiteboard: [webdriver:m19][webdriver:external][lang=py][wptsync upstream][webdriver-relnote] → [webdriver:m19][webdriver:external][lang=py][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: