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.

Plugin causes invalid output

See original GitHub issue

Hi, thanks for the awesome idea. I have found several issues using this project.

But, I have faced an issue in one of my projects.

How it is now

I am 100% sure that I don’t have any duplicates or unused fixtures. Link to tests: https://github.com/wemake-services/wemake-django-template/blob/master/tests/test_project_generation.py That’s exactly what this plugin reports. But it does report something really strange:

============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /home/travis/build/wemake-services/wemake-django-template, inifile: setup.cfg
plugins: isort-0.1.0, flake8-1.0.0, deadfixtures-2.0.0, cookies-0.3.0
collected 16 items                                                             
Cool, every declared fixture is being used.
You may have some duplicate fixtures:
========================= no tests ran in 0.02 seconds =========================
The command "pipenv run python -m pytest" exited with 0.

What does it mean? Are tests executed? Why You may have some duplicate fixtures label is shown without any items?

Link to the build: https://travis-ci.org/wemake-services/wemake-django-template/builds/371985278

How it should be

============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /home/travis/build/wemake-services/wemake-django-template, inifile: setup.cfg
plugins: isort-0.1.0, flake8-1.0.0, deadfixtures-2.0.0, cookies-0.3.0
collected 16 items                                                             
Cool, every declared fixture is being used.
You don't have any duplicate fixtures.

....
========================= 4 tests ran in 0.02 seconds =========================
The command "pipenv run python -m pytest" exited with 0.

Offtopic

Are you interested in creating “Projects using it” section? I would be happy to submit https://github.com/wemake-services/wemake-django-template

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jllorencetticommented, Apr 28, 2018

I believe this would be a different issue. 🤔 I’ll need to take a look at pytest code to see what/why is causing the collected count to diverge and see if I can do something about it in the plugin.

0reactions
sobolevncommented, Apr 28, 2018

@jllorencetti tests count is still invalid.

Plugin version: deadfixtures-2.0.1 Collected: 16 tests Run: 0 Link: https://travis-ci.org/wemake-services/wemake-django-template/jobs/372351652#L565

Should we reopen this one? Or create a new issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Post_Type Plugin causes Invalid argument supplied ...
This is what was causing the error. The solution was to simply change the value 'false' to an array. The fixed function is...
Read more >
Validation failed: Invalid input in "Content" #1761 - GitHub
Version Grav v1.6.16 - Admin v1.9.10 As you can see in the image I get invalid input if I just paste the default...
Read more >
Troubleshoot WordPress Plugin Invalid State Errors - Auth0
The most common cause of the invalid state error is when the callback URL is cached on the server. Exclude caching on your...
Read more >
Notification Bar Causes Invalid HTML - WordPress.org
Hello. When calling the fep_notification_div hook during wp_head(), it outputs the HTML for the notification bar in the HEAD tag, producing invalid HTML....
Read more >
Smart service input and output count does not match the count ...
when I have added output parameter in the same service, it is throwing below error: "The Smart Service Module was invalid: Smart service...
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