Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoded as bytes unit test #344

Merged
merged 7 commits into from
Jun 3, 2022
Merged

Conversation

tzaffi
Copy link
Contributor

@tzaffi tzaffi commented Jun 3, 2022

Adding a unit test for encoding.encoded_as_bytes()

Result is passing in CI

Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for adding a test

test_unit.py Outdated Show resolved Hide resolved
@algochoi
Copy link
Contributor

algochoi commented Jun 3, 2022

I made some changes that fix the integ tests - I think if you pull the latest changes it should work again

@tzaffi tzaffi merged commit a94cf7e into box-support Jun 3, 2022
@tzaffi tzaffi deleted the encoded_as_bytes-unit_test branch June 3, 2022 17:49
algochoi added a commit that referenced this pull request Jun 15, 2022
* starting to add box support

* Add boxes to atc

* Format files with black

* Add boxes docstring

* Add boxes support for appl creation

* Update cucumber steps for appl txn encoding for boxes

* Formatting

* Point testing branch to box-reference (WIP)

* Sort imports on relevant files and format

* Add translation for foreign apps in box refs and some local unit tests

* Add some invalid cases for box translation

* Check for None when iterating box refs

* Add self app id references and tests

* Minor changes for box support

* Split boxref to separate file

* Change box name type to bytes

* Change docs references from box string to bytes

* Refactor cucumber steps

* Refactoring code and adding docstrings

* Add another comment

* Change test steps to encode box args like app args

* Add safety checks for box references

* Add some detailed errors and refactor

* Format unit test

* Fix foreign index error and revise undictify method

* Finish merging cucumber steps

* Formatting

* Fix box tests again

* Encoded as bytes unit test (#344)

* Unit test for encoding.py's `encode_as_bytes()`

* Accept AttributeError for foreign apps array if it is referencing its own app id

* Add unit test for empty foreign app array

* Change unit test to pass in None foreign array

* Change undictify method for boxes

* Formatting

* Change test branch

* Change type hints for atc boxes

* Check for int type for box reference id

* Change type ignore annotation

Co-authored-by: Ben Guidarelli <[email protected]>
Co-authored-by: Zeph Grunschlag <[email protected]>
algochoi added a commit that referenced this pull request Jun 30, 2022
* starting to add box support

* Add boxes to atc

* Format files with black

* Add boxes docstring

* Add boxes support for appl creation

* Update cucumber steps for appl txn encoding for boxes

* Formatting

* Point testing branch to box-reference (WIP)

* Sort imports on relevant files and format

* Add translation for foreign apps in box refs and some local unit tests

* Add some invalid cases for box translation

* Check for None when iterating box refs

* Add self app id references and tests

* Minor changes for box support

* Split boxref to separate file

* Change box name type to bytes

* Change docs references from box string to bytes

* Refactor cucumber steps

* Refactoring code and adding docstrings

* Add another comment

* Change test steps to encode box args like app args

* Add safety checks for box references

* Add some detailed errors and refactor

* Format unit test

* Fix foreign index error and revise undictify method

* Finish merging cucumber steps

* Formatting

* Fix box tests again

* Encoded as bytes unit test (#344)

* Unit test for encoding.py's `encode_as_bytes()`

* Accept AttributeError for foreign apps array if it is referencing its own app id

* Add unit test for empty foreign app array

* Change unit test to pass in None foreign array

* Change undictify method for boxes

* Formatting

* Change test branch

* Change type hints for atc boxes

* Add algod endpoint for getting app box by name

* Add steps test for box application path

* Escape forward slashes in uri

* Formatting

* Finish merging

* Add box integration tests

* Formatting

* Add boxes integration test tag to makefile

* Change step prefix

* Revert step prefix

* Change algod request for box search and test

* Change makefile test

* Formatting

* Remove unused line

* Change wording around box encoding steps

* Try running feature branch tests

Co-authored-by: Ben Guidarelli <[email protected]>
Co-authored-by: Zeph Grunschlag <[email protected]>
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