fix: correct issues in tests referencing now missing python binary
This commit is contained in:
@@ -1 +1 @@
|
|||||||
release: pipenv run python manage.py migrate
|
release: pipenv run python3 manage.py migrate
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "python task.py schedule"
|
assert_output_contains "python3 task.py schedule"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(cron) create [single-short]" {
|
@test "(cron) create [single-short]" {
|
||||||
@@ -100,7 +100,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "python task.py daily"
|
assert_output_contains "python3 task.py daily"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(cron) create [multiple]" {
|
@test "(cron) create [multiple]" {
|
||||||
@@ -113,8 +113,8 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "python task.py first"
|
assert_output_contains "python3 task.py first"
|
||||||
assert_output_contains "python task.py second"
|
assert_output_contains "python3 task.py second"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(cron) injected entries" {
|
@test "(cron) injected entries" {
|
||||||
@@ -255,7 +255,7 @@ template_cron_file_invalid_schedule() {
|
|||||||
{
|
{
|
||||||
"cron": [
|
"cron": [
|
||||||
{
|
{
|
||||||
"command": "python task.py",
|
"command": "python3 task.py",
|
||||||
"schedule": "@nonstandard"
|
"schedule": "@nonstandard"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -272,7 +272,7 @@ template_cron_file_invalid_schedule_seconds() {
|
|||||||
{
|
{
|
||||||
"cron": [
|
"cron": [
|
||||||
{
|
{
|
||||||
"command": "python task.py",
|
"command": "python3 task.py",
|
||||||
"schedule": "0 5 * * * *"
|
"schedule": "0 5 * * * *"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -289,11 +289,11 @@ template_cron_file_valid() {
|
|||||||
{
|
{
|
||||||
"cron": [
|
"cron": [
|
||||||
{
|
{
|
||||||
"command": "python task.py schedule",
|
"command": "python3 task.py schedule",
|
||||||
"schedule": "5 5 5 5 5"
|
"schedule": "5 5 5 5 5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "python task.py schedule now",
|
"command": "python3 task.py schedule now",
|
||||||
"schedule": "6 5 5 5 5"
|
"schedule": "6 5 5 5 5"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -310,7 +310,7 @@ template_cron_file_valid_single() {
|
|||||||
{
|
{
|
||||||
"cron": [
|
"cron": [
|
||||||
{
|
{
|
||||||
"command": "python task.py schedule",
|
"command": "python3 task.py schedule",
|
||||||
"schedule": "5 5 5 5 5"
|
"schedule": "5 5 5 5 5"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -326,7 +326,7 @@ template_cron_file_valid_short() {
|
|||||||
{
|
{
|
||||||
"cron": [
|
"cron": [
|
||||||
{
|
{
|
||||||
"command": "python task.py daily",
|
"command": "python3 task.py daily",
|
||||||
"schedule": "@daily"
|
"schedule": "@daily"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -343,11 +343,11 @@ template_cron_file_valid_multiple() {
|
|||||||
{
|
{
|
||||||
"cron": [
|
"cron": [
|
||||||
{
|
{
|
||||||
"command": "python task.py first",
|
"command": "python3 task.py first",
|
||||||
"schedule": "5 5 5 5 5"
|
"schedule": "5 5 5 5 5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "python task.py second",
|
"command": "python3 task.py second",
|
||||||
"schedule": "@daily"
|
"schedule": "@daily"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user