fix: Allows checks for both underscores and dashes as equal#86
fix: Allows checks for both underscores and dashes as equal#86bryant-finney merged 7 commits intoMadoshakalaka:masterfrom jshwi:fix/issues/72
Conversation
Codecov Report
@@ Coverage Diff @@
## master #86 +/- ##
=======================================
Coverage 94.63% 94.63%
=======================================
Files 10 10
Lines 745 746 +1
=======================================
+ Hits 705 706 +1
Misses 40 40
Continue to review full report at Codecov.
|
Fixes open issue: sync-then-check fails with underscores #72
* Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data/broken_1 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data/extra_0 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump requests from 2.18.4 to 2.20.0 in /tests/data Bumps [requests](https://github.com/psf/requests) from 2.18.4 to 2.20.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.18.4...v2.20.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bryant-finney
left a comment
There was a problem hiding this comment.
Awesome job! I had a few suggestion; to summarize:
-
test_sync_underscore_or_dash()can be simplified a bit further:def test_sync_underscore_or_dash(shared_datadir): # type: (Path) -> None """ sync --pipfile should work for either dash or underscore names. Asserts fix for https://github.com/Madoshakalaka/pipenv-setup/issues/72. """ with data("dash_or_underscore_0", shared_datadir / "dash_or_underscore_0"): cmd(["", "sync", "--pipfile"]) cmd(["", "check"])
-
tests/data/dash_or_underscore_0/Pipfile.lockcan be removed -
tests/data/dash_or_underscore_0/pyproject.tomlcan be removed - add a hyphenated dependency to
tests/data/dash_or_underscore_0/Pipfilefor completeness
|
@bryant-finney awesome, thanks for the review, I'll check out you found |
|
@bryant-finney the pyproject.toml was a side effects of |
Co-authored-by: Bryant Finney <[email protected]>
Removes unused arguments Co-authored-by: Bryant Finney <[email protected]>
Removes unnecessary copying of files Co-authored-by: Bryant Finney <[email protected]>
We can simply test that an error is not raised Co-authored-by: Bryant Finney <[email protected]>
|
I will pull this PR as it is now, and remedy these failed tests. |
Removes parametrized attrs as single use cases (this test will probably not need to be expanded upon in the future - i.e. premature optimization). Co-authored-by: Bryant Finney <[email protected]>
|
I left the other commits in here for completeness. Of course, this can be rebased onto the master branch, or merged, etc. Whatever the preferred strategy is. |
|
@bryant-finney I've run the test without the change to |
|
@jshwi Great 👍 I'll go ahead with squash+merge! |
* #86 additional security updates (#85) * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data/broken_1 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data/extra_0 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump requests from 2.18.4 to 2.20.0 in /tests/data Bumps [requests](https://github.com/psf/requests) from 2.18.4 to 2.20.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.18.4...v2.20.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data/broken_1 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.1.14 to 1.3.0 in /tests/data/extra_0 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.1.14 to 1.3.0. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fixes open issue: sync-then-check fails with underscores #72