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.

--tag option provided in help but not implemented

See original GitHub issue

I’ve tagged some tests to ensure that views take into account group membership or lack thereof, but can’t get the test command to recognize the --tag option for nose or as specified in the Django docs.

django-nose==1.4.4 Django==1.10.2 nose==1.3.7

$ python manage.py test --tag="as_user" administration.tests
nosetests administration.tests --tag=as_user --verbosity=1
Usage: manage.py [options]

manage.py: error: no such option: --tag

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
makyocommented, Nov 7, 2016

Pardon me, not actually a nose option. Went by manage.py test --help:

...
  --tag TAGS            Run only tests with the specified tag. Can be used
                        multiple times.
  --exclude-tag EXCLUDE_TAGS
                        Do not run tests with the specified tag. Can be used
                        multiple times.
...
0reactions
brianpeiriscommented, Sep 28, 2022

If you’ve found this issue because you want to use tags to filter your test runs, you should be able to use nose’s -a flag with the @attr() decorator, via nose’s built-in plugin: https://nose.readthedocs.io/en/latest/plugins/attrib.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GA4] Troubleshoot tag setup on your website - Analytics Help
The Google tag ID is incorrect · Click Data Streams and then select the web data stream for the website. · In the...
Read more >
Implement AWS resource tagging strategy using AWS Tag ...
You can enforce specific tag policies by choosing the option 'prevent non-compliant operations for this tag', and selecting the resource types ...
Read more >
Use tags to organize your Azure resources and management ...
If you have not previously applied tags, the list is empty. View tags for resource or resource group. To add a tag, select...
Read more >
HTTP/1.1: Status Code Definitions
2 501 Not Implemented. The server does not support the functionality required to fulfill the request.
Read more >
Manage consent settings (web) | Tags - Google Developers
When writing your own templates or Custom HTML tags, any commands executed in callbacks or commands that use gtag() are not guaranteed to...
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