Commit Graph

10215 Commits (2e0a1e5782454da9a7e6872808983d9425cf365f)

Author SHA1 Message Date
derekpierre 2e0a1e5782 Add tests for conditions lingo validation. Use InvalidConditionLingo exception for invalid lingo grammar. 2022-11-18 13:42:25 -05:00
derekpierre c50eb1e5c2 Instantiate Schema object before trying to use it for validation. 2022-11-18 12:29:48 -05:00
derekpierre 4cf9c7c70a Enrico now provides condition as actual None with no conditions are provided instead of an empty Conditions object.
Utilize better typing of condition dictionaries and its values.
Allow validation of conditions data without instantiation.
2022-11-18 10:33:15 -05:00
derekpierre c046e91e0b Add test to replicate failure case where Conditions are None instead of an empty Condition object. 2022-11-17 16:12:04 -05:00
derekpierre 6a0ffd3c2e Add newsfragment for #3025. 2022-11-17 15:26:49 -05:00
derekpierre 38676fcd78 Fix handling of empty rust lingos appropriately on capsule - backwards compatibility with PRE. 2022-11-17 15:21:27 -05:00
KPrasch a3e87b12b1
Merge pull request #3023 from KPrasch/deps
Relock dependencies; Bump nucypher-core
2022-11-17 17:14:38 +00:00
Kieran Prasch 6cbc4cbd1b Handle nucypher-core v0.4.1 Address type. 2022-11-17 16:49:38 +00:00
Kieran Prasch 84e95f9d75 Pin web3==v6.0.0b6 2022-11-17 16:45:50 +00:00
Kieran Prasch 3393c61228 bump hendrix to v4.0.0 2022-11-17 16:34:08 +00:00
Kieran Prasch 592c300461 update static files tests for twisted 22.10.0 2022-11-17 16:34:08 +00:00
Kieran Prasch 176e20adb3 newsfragment for PR #3023 2022-11-17 16:34:08 +00:00
Kieran Prasch 1209a2dc1c update requirements 2022-11-17 16:09:21 +00:00
Kieran Prasch 8749b742c0 Update Pipfile and lock 2022-11-17 16:09:21 +00:00
KPrasch 53431c479c
Merge pull request #3024 from derekpierre/towncrier-update
Dev newsfragments will show up in release notes but under its own section
2022-11-17 16:08:20 +00:00
KPrasch b3fcd50c2b
Merge pull request #3021 from KPrasch/condition-bug
Cleanup Condition Tests
2022-11-17 16:07:52 +00:00
Kieran Prasch 023494f4a2 respond to RFCs in PR #3021 2022-11-17 15:27:24 +00:00
Kieran Prasch 24b4b33265 post-rebase cleanup 2022-11-17 15:25:00 +00:00
Kieran Prasch ff3f414331 Sort fixtures that compile to localized acceptance/unit conftest respectively; Faster unit test suite. 2022-11-17 15:22:55 +00:00
Kieran Prasch 679a655558 newsfragment for PR #3021 2022-11-17 15:22:55 +00:00
Kieran Prasch fbfe0c8bc6 Fixturize test module constants 2022-11-17 15:22:53 +00:00
Kieran Prasch 38e8259e37 Cleanup test conditions data 2022-11-17 15:20:43 +00:00
Kieran Prasch 15b98e5479 de-duplicate condition fixture definition 2022-11-17 15:20:43 +00:00
James Campbell b7f23c7c16 Investigate types changing in condition parameters 2022-11-17 15:20:41 +00:00
derekpierre 66d22ef637 Add dev newsfragment for #3024. 2022-11-17 09:52:07 -05:00
derekpierre fb9c12dc78 Dev newsfragments will show up in release notes but under its own section (off to the side).
Setting showcontent for dev to true; nothing wrong with empty dev fragments - this allows the option for a dev to add text if deemed necessary, as opposed to being overly strict about it.
2022-11-17 09:29:45 -05:00
KPrasch 275751f340
Merge pull request #3016 from derekpierre/testing-blitz
Testing blitz to improve code coverage.
2022-11-17 11:40:25 +00:00
KPrasch 8b759ef5ff
Merge pull request #3022 from derekpierre/dev-pr
Dev newsfragment
2022-11-16 22:17:16 +00:00
derekpierre 535928d1c4 Add dev newsfragment for #3022. 2022-11-16 14:09:13 -05:00
derekpierre 9f07129d84 Allow for *.dev.rst newsfragments for dev-specific work, which allows for the release note gh action to pass without including information (pr/issue number) in the release notes. 2022-11-16 14:07:38 -05:00
derekpierre 81a6e9539b Git should ignore any code coverage files. 2022-11-16 12:28:17 -05:00
derekpierre 7a389e2c39 Improve OperatorBondedTracker coverage. 2022-11-16 12:28:17 -05:00
derekpierre b2f71dd5c6 Add more conditions/lingo tests. 2022-11-16 12:28:17 -05:00
derekpierre 6e8a5bdcdf Remove unused code. 2022-11-16 12:28:17 -05:00
derekpierre dc488624e8 Improve testing for ConditionLingo, utils. Remove unceessary check for function_abi. 2022-11-16 12:28:15 -05:00
derekpierre ceee8bd2e9 Add tests for evaluate_condition() utils method. Fix incorrect type in method. 2022-11-16 12:27:12 -05:00
KPrasch 61e11032cd
Merge pull request #3017 from KPrasch/remove-header
Remove license header from modules
2022-11-16 17:20:55 +00:00
KPrasch e6fc9d83c6
Merge pull request #3018 from derekpierre/code-cov-refine
Code coverage refinement
2022-11-16 17:11:50 +00:00
Kieran Prasch c11731a9b0 remove license additions from pre-commit hooks 2022-11-16 16:56:28 +00:00
derekpierre 69bca85d2a Run coverage directly and not through pytest-cov - there are discrepancy in reports.
Only upload coverage reports after all tests have passed.
Premature optimization for only running code coverage for specific python matrix value, and run pytest directly otherwise.
2022-11-16 11:14:32 -05:00
Kieran Prasch 6ca73c2849 remove lisence header from tests 2022-11-16 13:27:47 +00:00
Kieran Prasch 1f1226c531 remove lisence header from nucypher modules 2022-11-16 13:23:16 +00:00
Derek Pierre 94227dc069
Merge pull request #3015 from KPrasch/middleware
response.json -> response.content
2022-11-15 11:30:28 -05:00
KPrasch 0f27f974b3
Merge pull request #3014 from theref/functionAbi
Resolve `function_abi` AFTER condition is initialized
2022-11-15 16:29:53 +00:00
Kieran Prasch 527ac143bc response.json -> response.content 2022-11-15 16:28:22 +00:00
Derek Pierre 57d4fa5d36
Update codecov to track development branch, where active development occurs. 2022-11-15 11:27:36 -05:00
James Campbell c432ecd8e4
Merge pull request #3010 from derekpierre/code-cov
Code Coverage
2022-11-15 15:25:11 +00:00
James Campbell bdaaafd9c3 Fix newsfragment and ensure conditions test has a valid method 2022-11-15 14:58:56 +00:00
James Campbell 4c5dadbad4 Resolve `function_abi` AFTER condition is initialized
Fixes #3012

Problem
-------
- when specifying a `standard_contract_type`, the `function_abi` is resolved
  immediately
- when this condition is serialized, it contains both `standard_contract_type`
  and `function_abi`, which we are trying to prevent

Solution
--------
- call `_resolve_abi` after the condition is initialized
2022-11-15 14:47:11 +00:00
derekpierre 1b37fbb319 Fail CI if coverage report cannot be uploaded. 2022-11-15 09:28:11 -05:00