Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test assertions after changes to the getting started guide #1450

Merged
merged 1 commit into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions spec/hatchet/django_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
app.deploy do |app|
expect(clean_output(app.output)).to match(Regexp.new(<<~REGEX))
remote: -----> \\$ python manage.py collectstatic --noinput
remote: \\d+ static files copied to '/tmp/build_.*/staticfiles', \\d+ post-processed.
remote: WARNING:root:No DATABASE_URL environment variable set, and so no databases setup
remote: \\d+ static files? copied to '/tmp/build_.*/staticfiles', \\d+ post-processed.
REGEX
end
end
Expand All @@ -36,7 +37,7 @@
it 'skips collectstatic' do
app.deploy do |app|
expect(app.output).to include('Skipping Django collectstatic since the env var DISABLE_COLLECTSTATIC is set.')
expect(app.output).not_to include('static files copied')
expect(app.output).not_to include('manage.py collectstatic')
end
end
end
Expand All @@ -46,7 +47,7 @@

it 'still runs collectstatic' do
app.deploy do |app|
expect(app.output).to include('static files copied')
expect(app.output).to include('manage.py collectstatic')
end
end
end
Expand All @@ -56,7 +57,7 @@

it 'still runs collectstatic' do
app.deploy do |app|
expect(app.output).to include('static files copied')
expect(app.output).to include('manage.py collectstatic')
end
end
end
Expand All @@ -70,7 +71,7 @@
remote: -----> Skipping Django collectstatic since the file '.heroku/collectstatic_disabled' exists.
remote: ! This approach is deprecated, please set the env var DISABLE_COLLECTSTATIC=1 instead.
OUTPUT
expect(app.output).not_to include('static files copied')
expect(app.output).not_to include('manage.py collectstatic')
end
end
end
Expand Down
15 changes: 0 additions & 15 deletions spec/hatchet/getting_started_spec.rb

This file was deleted.