feat: add django test command
Added django's manage.py test command as a shortcut
This commit is contained in:
@@ -61,13 +61,17 @@ pub fn makemigrations() -> Result<()> {
|
||||
manage(&["makemigrations".to_string()])
|
||||
}
|
||||
|
||||
pub fn shell() -> Result<()> {
|
||||
manage(&["shell".to_string()])
|
||||
}
|
||||
|
||||
pub fn migrate(rest: &[String]) -> Result<()> {
|
||||
let mut full_rest = vec!["migrate".to_string()];
|
||||
full_rest.extend_from_slice(rest);
|
||||
|
||||
manage(&full_rest)
|
||||
}
|
||||
|
||||
pub fn shell() -> Result<()> {
|
||||
manage(&["shell".to_string()])
|
||||
}
|
||||
|
||||
pub fn test() -> Result<()> {
|
||||
manage(&["test".to_string()])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user