filmov
tv
Brownie Tutorial 10 -- Parametrization

Показать описание
🎥 Parametrized Testing 🎬
Brownie utilizes Pytest, which has advanced testing capabilities. Pytest's parametrization capabilities allow you to execute your tests against a variety of inputs.
## Tutorial Resources:
# BROWNIE + PYTEST
### TEST STRUCTURE
Parametrized tests are slow, so they are often stored in a different directory and run separately.
$ brownie test test/unitary # Non-Parametrized Tests
$ brownie test test/integrative # Parametrized Tests
### PARAMETRIZATION DECORATION
Pass parameters to your tests by calling the decorator
% def test_parametrized(i):
% # Your Function Here
% ...
# CURVE REGISTRY FUNCTIONS
### GET COIN SWAP COMPLEMENT
Return the pool at offset **i** from all Curve pools using a particular coin
### FIND POOL FOR COINS
Find the corresponding Curve pool for two coins.
### GET_N_COINS
Get the number of coins in a Curve pool
### GET_COIN_INDICES
Find the coin index within a Curve pool
Brownie utilizes Pytest, which has advanced testing capabilities. Pytest's parametrization capabilities allow you to execute your tests against a variety of inputs.
## Tutorial Resources:
# BROWNIE + PYTEST
### TEST STRUCTURE
Parametrized tests are slow, so they are often stored in a different directory and run separately.
$ brownie test test/unitary # Non-Parametrized Tests
$ brownie test test/integrative # Parametrized Tests
### PARAMETRIZATION DECORATION
Pass parameters to your tests by calling the decorator
% def test_parametrized(i):
% # Your Function Here
% ...
# CURVE REGISTRY FUNCTIONS
### GET COIN SWAP COMPLEMENT
Return the pool at offset **i** from all Curve pools using a particular coin
### FIND POOL FOR COINS
Find the corresponding Curve pool for two coins.
### GET_N_COINS
Get the number of coins in a Curve pool
### GET_COIN_INDICES
Find the coin index within a Curve pool
Brownie Tutorial 10 -- Parametrization
Brownie Tutorial 4 -- Contracts
Brownie Tutorial 9 -- Fixtures II
Brownie Tutorial 8 -- Fixtures I
April 30, 2021: Curve Releases Brownie Tutorial 🧑🍳🍫
Smart Contract Programming 6: Writing unit tests with Brownie (Python) Test / Pytest
Brownie Fund Me | freeCodeCamp—Lesson #6
Code-along | Upgrades with Brownie
Alison Etheridge | Modelling hybrid zones
Langevin Dynamics of Yang-Mills in 2D and 3D - Hao Shen
Uncertainty Reduction of Earth System Land Model Simulations with Machine Learning & Causal Netw...
Sam Staton - Programming-based foundations for statistics
Yilin Wang 10 May 2022
CCMB SEMINAR 03/20/2013 - C. Anthony Hunt, Ph.D.
Andrew Elvey Price (2023) - Enumeration of walks by winding angle
Pytorch Continuous A2C RNN agent, bonus sample code, and 'Deep Mimic' multi skill decoder ...
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course
David Duvenaud - Handling messy time series with large latent-variable models
David Duvenaud - Latent Stochastic Differential Equations: An Unexplored Model Class
Linear Covariance Analysis of Entry and Aerocapture Trajectories in an Uncertain Atmosphere,
CBL Alumni Talk: Latent Stochastic Differential Equations: An Unexplored Model Class
#PalAss20 Session 13B
Consistency Models: Better Image Generation?
Boris Hanin | What is a Neural Network?
Комментарии