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.

Pre-release shows duplicated collection

See original GitHub issue

Tests are collected multipled times.

# cell 1
import ipytest
ipytest.autoconfig()

# cell 2
%%run_pytest[clean]

def test_bar():
    pass

def test_foo():
    pass

# runs 4 tests
# cell 1
import ipytest
ipytest.autoconfig(defopts=False)

# cell 2
%%run_pytest[clean]

def test_bar():
    pass

def test_foo():
    pass

# runs 2 tests

Somehow the “.py” suffix seems to interact with pytest’s test collection. Can also be reproduced with 0.9.1 and register_module=True.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
chmpcommented, Jun 4, 2021

So I implemented these changes in the feature/remove-module-collector branch and released them as ipytest==0.10.0b2. Just in case you would like to give it a go. I will also try myself and see whether the changes break anything.

0reactions
chmpcommented, Jun 29, 2021

Released 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect (duplicate) prerelease version determined even ...
I'm going to move all my packages over to a semantic-release CI/CD trunk-based flow, but most of them already have manually published releases....
Read more >
Duplicate 'Content' items were included. The .NET SDK ...
1. Click 'Show All Files' in Solution Explorer 2. Right-click over 'wwwroot' select 'Exclude From Project' 3. Right-click over 'wwwroot' select 'Include in ......
Read more >
Is it possible to check/search duplicate with collection before ...
Solved: Hello Everyone, I am working on an office supply system and in that more than 200 items list. The user is allowed...
Read more >
Big Mistakes In Baldur's Gate Prerelease Kits - YouTube
Opening up a Commander legends battle for Baldur's gate prerelease kit with multiple mistakesLinks to Purchase Commander Legends: Battle for ...
Read more >
What is this Kit!? - Pre-Release Kit Opening - Brothers' War
In our last opening for Brothers' War, where Joe gives away THREE MTG Arena codes, he opens a lot of duplicates, a borderless...
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