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.

0.0.4 test failure: fixture 'vuln_service' not found

See original GitHub issue

When running the self tests for pip-audit-0.0.4 using py.test, I see:

___________________________________________________________ ERROR at setup of test_audit ___________________________________________________________
file /scratch/wip/py-pip-audit/work/pip-audit-0.0.4/test/test_audit.py, line 10
  def test_audit(vuln_service, dep_source):                                                                                                         
E       fixture 'vuln_service' not found                                  
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, 
record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory                                        
>       use 'pytest --fixtures [testpath]' for help on them.              
                                                                                                                                                    
/scratch/wip/py-pip-audit/work/pip-audit-0.0.4/test/test_audit.py:10                                                                                
_______________________________________________________ ERROR at setup of test_audit_dry_run _______________________________________________________
file /scratch/wip/py-pip-audit/work/pip-audit-0.0.4/test/test_audit.py, line 32                                                                     
  def test_audit_dry_run(monkeypatch, vuln_service, dep_source):                                                                                    
E       fixture 'vuln_service' not found                                                                                                            
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, 
record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.                                                                                        
                                                                                                                                                    
/scratch/wip/py-pip-audit/work/pip-audit-0.0.4/test/test_audit.py:32

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:35 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
0-wiz-0commented, Nov 10, 2021

Thank you, it was very motivating tracking these issues down with you!

1reaction
0-wiz-0commented, Nov 9, 2021

Tracing it I see it accessing ~/.pip/pip.conf, ~/.config/pip/pip.conf, (and some similar paths), but they don’t exist. Ok, another nice theory down the drain 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Privilege Escalation — Part 1 (Unquoted Service Path)
When a service is created whose executable path contains spaces and isn't enclosed within quotes, leads to a vulnerability known as Unquoted ...
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