Skip to content

Encoded as bytes unit test#344

Merged
tzaffi merged 7 commits into
box-supportfrom
encoded_as_bytes-unit_test
Jun 3, 2022
Merged

Encoded as bytes unit test#344
tzaffi merged 7 commits into
box-supportfrom
encoded_as_bytes-unit_test

Conversation

@tzaffi
Copy link
Copy Markdown
Contributor

@tzaffi tzaffi commented Jun 3, 2022

Adding a unit test for encoding.encoded_as_bytes()

Result is passing in CI

Copy link
Copy Markdown
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

Comment thread test_unit.py Outdated
@algochoi
Copy link
Copy Markdown
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 and others added 2 commits June 3, 2022 12:06
Co-authored-by: algochoi <86622919+algochoi@users.noreply.github.com>
@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 <ben.guidarelli@gmail.com>
Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com>
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 <ben.guidarelli@gmail.com>
Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com>
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