Skip to content

[#82] Mock tests for morley-client

Roman Melnikov requested to merge rvem/#82-tests-for-morley-client into master

Description

Add simple mock tests for existing morley-client functionality (big map getter, transaction sending and contract origination)

These tests substitute real RPC calls with some simple mock responses. These responses in their turn ensure some predicates that checked in the real blockchain, e.g. chain_id, protocol name and contract counter matching. However, they don't perform any signature checks, don't actually run contracts and affect their storages.

Related issue(s)

Resolves #82 (closed)

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:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports