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.

Add a way to configure the scope

See original GitHub issue

For the moment, the scope of the dependencies is hard coded to module. That means that a test can only be marked as dependent on a test in the same module, but cannot depend on a test in a different module. The backend class DependencyManager is in principle also capable to work on session scope. But the calling hooks do not use the optional scope argument in the getManager() call.

The difficulty is that I have no idea how to define a clean API to configure the scope from the calling tests.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
JoeSccommented, Feb 23, 2018

Take a look at https://github.com/JoeSc/pytest-dependency/commit/d282e6df1248e8617156fdedeba2e6ffef9ce374

I think it does what you want, and is sane. All the existing tests still pass. Let me know if you approve or want changes and I can add some documentation

1reaction
bentsicommented, Jan 15, 2019

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring a scope - IBM
On the menu bar, click Discovery > Scope. · To define a new discovery scope set, click Add Set. · In the Name...
Read more >
How to Create a New Scope in DHCP: 13 Steps (with Pictures)
1. Run DHCP from Start Menu > Programs > Administrative Tools > DHCP 2. In the DHCP console, highlight the server, and click...
Read more >
How to configure DHCP Scope & Superscope in ... - YouTube
This Video is show on how to configure DHCP Scope & Superscope in Windows server 2019.
Read more >
Step-by-Step Creating a Windows Server DHCP Scope
In the DHCP console, from the left tree view expand the scope you want to add reservations to. · Select and then right-click...
Read more >
Configure DHCP scopes in Windows Server - 4sysops
So, to create a scope, we're going to right-click on IPv4 and select the option for New Scope. This launches the New Scope...
Read more >

github_iconTop Related Medium Post

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