Skip to content

Adds the verifier field to the project response#43

Merged
pcothenet merged 1 commit into
mainfrom
pc/1.5.1
Nov 4, 2021
Merged

Adds the verifier field to the project response#43
pcothenet merged 1 commit into
mainfrom
pc/1.5.1

Conversation

@pcothenet

Copy link
Copy Markdown
Contributor

What

  • Adds the verifier field to the project response

Why

** CHANGEME: Why are these changes needed? **

SDK Release Checklist

  • Have you added an integration test for the changes?
  • Have you built the library locally and made queries against it successfully?
  • Did you update the changelog?
  • Did you bump the package version?
  • For breaking changes, did you plan for the release of the new SDK versions and deploy the API to production?

@pcothenet
pcothenet requested review from alianam and kleinjm November 4, 2021 19:11
Comment thread test/test_projects_api.py
self.assertEqual(project.developer, "Patch Sandbox Supplier Test")
self.assertIsInstance(project.country, str)
self.assertIsInstance(project.type, str)
self.assertIsInstance(project.developer, str)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no test for verifier?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, that data was too sparsely populated to make for a reliable test. To be revised when we can improve test strategies for SDKs.

Comment thread test/test_projects_api.py
Comment on lines -75 to +77
self.assertEqual(project.country, "US")
self.assertEqual(project.type, "biomass")
self.assertEqual(project.developer, "Patch Sandbox Supplier Test")
self.assertIsInstance(project.country, str)
self.assertIsInstance(project.type, str)
self.assertIsInstance(project.developer, str)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Those were too brittle and failing. Proposing to keep tests dumb in the SDKs

@pcothenet
pcothenet merged commit b84292d into main Nov 4, 2021
@pcothenet
pcothenet deleted the pc/1.5.1 branch November 4, 2021 19:43
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