question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

session-scope fixtures aren't honored

See original GitHub issue

Similar to what happens with pytest-xdist: https://github.com/pytest-dev/pytest-xdist/issues/271

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:12
  • Comments:5

github_iconTop GitHub Comments

3reactions
emdejcommented, Dec 31, 2019

This is somehow expected in multiprocess operation mode (workers>1), but in thread mode (tests-per-worker>1) scopes “module” and “session” should be honored - the fixture should be shared.

2reactions
pgpcommented, Feb 22, 2021

Any news on this? I can confirm session fixtures are not honoured even in single-worker (multi-threaded) mode

Read more comments on GitHub >

github_iconTop Results From Across the Web

Session-Scoped Fixtures are not Session-Scoped with Pytest ...
The problem is that my Tests are depending on a big fixture setup ... session-scope fixtures aren't honored kevlened/pytest-parallel#26.
Read more >
pytest-parallel not honouring module-scope fixtures
So this means that the module-scope is not being honoured in pytest-parallel. It is trying to execute the get_some_binary_file for every ...
Read more >
HTTP session problems - IBM
HTTP sessions are not getting created, or are lost between requests ... Internet Explorer honors the domain with or without a dot.
Read more >
Testing - Spring
Within our sessionScope() test method, we set up our test fixture by setting the expected theme attribute in the provided MockHttpSession .
Read more >
pytest Documentation - Read the Docs
Tests and fixtures aren't limited to requesting a single fixture at ... on a session scope: it is fine for fixtures to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found