Skip to content

Add tests to check from_string & from_spec equality - #28

Merged
Hritik14 merged 4 commits into
mainfrom
from_spec_native_test
Jan 14, 2022
Merged

Add tests to check from_string & from_spec equality#28
Hritik14 merged 4 commits into
mainfrom
from_spec_native_test

Conversation

@Hritik14

Copy link
Copy Markdown
Collaborator

This will avoid errors like #27
popping up in future

Signed-off-by: Hritik Vijay hritikxx8@gmail.com

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you : LGTM!

Comment thread tests/test_version_range.py Outdated
Comment thread tests/test_version_range.py Outdated
@Hritik14
Hritik14 force-pushed the from_spec_native_test branch from a71481c to 5fdf360 Compare January 14, 2022 12:37
Hritik14 and others added 3 commits January 14, 2022 19:05
This will avoid errors like #27
popping up in future

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
This changes the logic:
1. we iterate explicitly on the tests. If a test is for a scheme that
does not exist, it will fail
2. we also check that all schemes have a test and fail if not


Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
@Hritik14
Hritik14 force-pushed the from_spec_native_test branch from 5fdf360 to 7fdc888 Compare January 14, 2022 13:36
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
@Hritik14
Hritik14 force-pushed the from_spec_native_test branch from 7fdc888 to 3b9988d Compare January 14, 2022 13:42
@Hritik14
Hritik14 merged commit 83e4fa6 into main Jan 14, 2022
@Hritik14
Hritik14 deleted the from_spec_native_test branch January 14, 2022 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants