derekpierre
b2a38762eb
Split out each condition into their own dict type.
2022-11-22 13:29:10 -05:00
derekpierre
df2dd0819b
Add newsfragment for #3026 .
2022-11-22 12:04:26 -05:00
derekpierre
fabc2f76aa
Refine typing used for LingoList; better define constituent parts.
...
Use TypeDict either directly via typing or via typing_extensions.
Some cleanup based on mypy output.
2022-11-22 12:04:05 -05:00
KPrasch
186c9ad5cd
Merge pull request #3025 from derekpierre/damn-none
...
Handle retrieval request with no conditions
2022-11-21 21:15:19 +00:00
derekpierre
d5e18dc56e
Move common test function to utility module.
2022-11-21 12:53:25 -05:00
derekpierre
58e1416013
Use @property attribute for capsules, lingos on work orders.
2022-11-21 12:47:47 -05:00
derekpierre
37ef40f482
Fixed incompatibility between Schema and their associated objects leading to invalid json being allowed, and valid json sometimes not being allowed.
...
Added tests.
2022-11-21 12:37:42 -05:00
derekpierre
d540846163
Add additional tests for ConditionLingo, and empty rust Conditions on MessageKits.
2022-11-18 14:52:49 -05:00
Kieran Prasch
83c373acad
Isolates rust type serialization; Do not unzip lingos from capsules in RetrievalPlan.
2022-11-18 19:48:59 +00:00
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