Skip to content

Commit

Permalink
Update pipenv tests (#1489)
Browse files Browse the repository at this point in the history
* Refresh fixtures to use latest version of dependencies
* Switch the Pipenv Python 3.11 test back to using the standard
  `include_examples` used by other versions (now that Pipenv
   no longer outputs deprecation warnings on Python 3.11)

This cleanup has been split out of the upcoming Python 3.12 PR.

GUS-W-14217111.
  • Loading branch information
edmorley authored Oct 2, 2023
1 parent 163c6b4 commit 8f09642
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 40 deletions.
7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_3.10/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_3.11/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_3.7/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_3.8/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_3.9/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_full_version/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_full_version_invalid/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_version_invalid/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/fixtures/pipenv_python_version_unspecified/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions spec/hatchet/pipenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,7 @@
context 'with a Pipfile.lock containing python_version 3.11' do
let(:app) { Hatchet::Runner.new('spec/fixtures/pipenv_python_3.11') }

it 'builds with the latest Python 3.11' do
app.deploy do |app|
expect(clean_output(app.output)).to match(Regexp.new(<<~REGEX))
remote: -----> Python app detected
remote: -----> Using Python version specified in Pipfile.lock
remote: -----> Installing python-#{LATEST_PYTHON_3_11}
remote: -----> Installing pip #{PIP_VERSION}, setuptools #{SETUPTOOLS_VERSION} and wheel #{WHEEL_VERSION}
remote: -----> Installing dependencies with Pipenv #{PIPENV_VERSION}
remote: Installing dependencies from Pipfile.lock \\(.+\\)...
remote: -----> Installing SQLite3
REGEX
end
end
include_examples 'builds using Pipenv with the requested Python version', LATEST_PYTHON_3_11
end

context 'with a Pipfile.lock containing python_full_version 3.10.7' do
Expand Down

0 comments on commit 8f09642

Please sign in to comment.