Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Unit test utilities

Satinder Rawal answered on April 22, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • what is unit testing
  • unittest
  • when to do manual testing
  • Unit Testing:
  • unittest
  • Unit Testing Framework
  • Unit tests#
  • Unit Tests
  • Unittest
  • Smart Contract unit test utilities
  • Unit Testing:
  • Unit Tests
  • Implementing a Unit Test
  • unit test methods

  • Unit test utilities

    0

    The Contracts SDK comes with unit test utilities; these are base classes that should be used in Contract unit tests. There are separate base classes for each Contracts API version and for Smart or Supervisor Contracts.

    Smart Contract unit test utilities

    In the example below, the SmartContracts340TestCase class is based on the TestCase class of the unittest Python built-in module. SmartContracts340TestCase also has the run_contract_function method that is used to run Contract hooks and helper functions, and the mocked vault object that should be used to mock data received by the Contract.

    Popularity 1/10 Helpfulness 1/10 Language python
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 22 2023
    Satinder Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.