Skip to content

Fix all broken tests and minor refactoring - #186

Merged
pombredanne merged 1 commit into
aboutcode-org:developfrom
arnav-mandal1234:test_fix
Mar 21, 2023
Merged

Fix all broken tests and minor refactoring#186
pombredanne merged 1 commit into
aboutcode-org:developfrom
arnav-mandal1234:test_fix

Conversation

@arnav-mandal1234

Copy link
Copy Markdown
Collaborator

Fixes all the broken tests. All the test cases are passing now.

@arnav-mandal1234
arnav-mandal1234 force-pushed the test_fix branch 2 times, most recently from 712eb9a to 2687127 Compare March 21, 2023 18:09
@arnav-mandal1234 arnav-mandal1234 changed the title Fixes all tests Fix all broken tests and minor refactoring Mar 21, 2023
 * Add `type` field in the test JSONs.
 * Replace `get_resource_from_path` method with `get_resource` method.
 * Refactor `create_deltas` method signature - remove path parameters.

Signed-off-by: Arnav Mandal <arnav.mandal1234@gmail.com>

@AyanSinhaMahapatra AyanSinhaMahapatra 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.

Thanks! This looks good to me.

The failing tests are for two things IMHO:

  • ubuntu_16/macos10_14/win_2016 is not supported anymore in azure piplines/github actions, so you get the The remote provider was unable to process the request errors
  • all python 3.6 jobs are failing, probably due to some issue of python3.6 not being supported anymore.

This should go away after we merge skeleton into deltacode #182 as the azure-pipelines.yml is updated there with latest images and python versions.

We probably only want to support python 3.8+ as python 3.7 will also be deprecated soon, in ~3 months. Anyway we are merging deltacode in scancode-toolkit #183 so this isn't that important.

LGTM!

@AyanSinhaMahapatra

Copy link
Copy Markdown
Member

@pombredanne ready for your review!

@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.

LGTM!
I assume that the failing tests on the CI are because the skeleton is merged in another PR.

@pombredanne
pombredanne merged commit 832bdf2 into aboutcode-org:develop Mar 21, 2023
@arnav-mandal1234

arnav-mandal1234 commented Mar 21, 2023

Copy link
Copy Markdown
Collaborator Author

@pombredanne yes, will update the skeleton in another PR.

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.

3 participants