Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.52 KB

File metadata and controls

41 lines (24 loc) · 1.52 KB

CRVFunder 2: Package Manager

The CRVFunder series is a short series exploring using Brownie at an application level. Specifically, we'll be looking at how Brownie was used to help rapidly prototype the CRVFunder application. CRVFunder launched a new fundraising gauge type to divert CRV inflation to any cause as voted on by the Curve DAO.

Throughout this series we'll be pointing to snapshots of the code in development. The actual repository is available at @vefunder/crvfunder. The code contained here in the crvfunder directory shows the application snapshot as it existed at 74d51bc

PYTEST EXIT CODES

Running pytest will return one of the following exit codes

  1. OK
  2. TESTS_FAILED
  3. INTERRUPTED
  4. INTERNAL_ERROR
  5. USAGE_ERROR
  6. NO_TESTS_COLLECTED

FIXTURE SCOPE

The scope of the fixture can be passed to determine when the fixture is destroyed

  • function: (default) fixture destroyed at end of test
  • class: fixture destroyed at last test in class
  • module: fixture destroyed at last test in module
  • session: fixture destroyed at end of test session

BROWNIE PACKAGE MANAGER

Brownie allows you to install external packages and projects from Github.

From the Command Line

brownie pm install [ORGANIZATION]/[REPOSITORY]@[VERSION]

Python Fixture

pm("[ORGANIZATION]/[REPOSITORY]@[VERSION]")