Comments (1)
I had the issue #28. I solved it by using subprocess.Popen
.
import subprocess
(stdout, stderr) = subprocess.Popen(["python", "manage.py", "yourcommand"], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
# assert something with stdout and stderr
from django-click.
Related Issues (18)
- Use commands.py instead of management/commands/each_one.py HOT 3
- django-click commands do not accept `base_stealth_options` HOT 4
- Django-click doesn't work with click >= 7.1 HOT 5
- Can't pass "help" parameter to click argument HOT 1
- Click 8 is a rejected dependency HOT 1
- stdout does not work on `call_command`
- ClickExceptions with no ctx cause an error
- Click 8 support requires a PyPI release HOT 2
- Move from Travis CI to Github Actions for CI
- Typer Integration HOT 4
- Add typing annotations HOT 2
- Raising Abort Causes Stacktrace Instead of Clean Shutdown.
- click.exceptions.MissingParameter: None HOT 3
- Feature Request: Make click management commands discoverable and runnable via django admin HOT 5
- Links to RTD do not work HOT 4
- --help incorrectly repeats command name
- quotes arguments do not work with django 2.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-click.