python: Move most of the tests to run under a single sandbox #96
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Move most of the tests to run under a single sandbox, but using different Parties.
The remaining tests that have not yet been moved over test more specialized features of dazl, so moving them over to a single sandbox instance is more complicated. Those will be addressed in a subsequent PR.
The TL;DR of the changes:
Network.aio_new_party
andNetwork.simple_new_party
, which imply an allocation of a newParty
. Note that the current implementation does not yet actually callPartyManagementService
, though it may in the future. It does, however, guarantee that newParty
literals are created (viauuid
), which is useful to keep the tests isolated from each other.Party
literals in tests have been removed.ensure_dar
to be created before theNetwork
is officially started.async_network
helper method to remove some of the more tedious boilerplate around creating aNetwork
, assigning it a URL, and uploading DARs (and then waiting for those DARs to be fully uploaded).This is a precursor to switching the tests to run against DAML SDK 1.x (as outlined by #75). As an added benefit, the tests take 7.5 minutes to run instead of 10 minutes (since Sandboxes aren't repeatedly being restarted).