Skip to content

[TM-319] Package tests

Sandeep.C.R requested to merge sras/tm319-share-ml-tests into master

Description

Problem : Some of tests for ManagedLedger a written in a way which supports passing arbitrary contracts implementing FA1.2, and we want those test templates to be used in other projects. The problem is that it's not possible while tests for Managed Ledger are located in cabal test package, they should be put to the library.

Solution: A new package was created besides the lorentz-contracts package, and the tests that we need to export were moved into it.

A related change that was required was to include/add an address argument to the contract origination function, so that the admin address can be set properly in the originated contract's storage

Related issue(s)

https://issues.serokell.io/issue/TM-319

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Sandeep.C.R

Merge request reports