Skip to content

Commit

Permalink
remove version numbers from docs, minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jan 30, 2020
1 parent 93e7004 commit ea242ba
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/api-test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ RevertContextManager

The ``RevertContextManager`` closely mimics the behaviour of `pytest.raises <https://docs.pytest.org/en/latest/reference.html#pytest-raises>`_.

.. py:class:: plugin.RevertContextManager(revert_msg=None)
.. py:class:: brownie.test.plugin.RevertContextManager(revert_msg=None)
Context manager used to handle :func:`VirtualMachineError <brownie.exceptions.VirtualMachineError>` exceptions. Raises ``AssertionError`` if no transaction has reverted when the context closes.

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def setup(sphinx):


project = "Brownie"
copyright = "2019"
copyright = "2020"
author = "Ben Hauser"

# The short X.Y version
Expand Down
6 changes: 3 additions & 3 deletions docs/ethpm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ To view a list of currently installed packages within a project:
::

$ brownie ethpm list
Brownie v1.2.0 - Python development framework for Ethereum
Brownie - Python development framework for Ethereum

Found 2 installed packages:
├─access@1.0.0
Expand All @@ -71,7 +71,7 @@ Any packages that are installed from a registry are also saved locally. To view
::

$ brownie ethpm all
Brownie v1.1.0 - Python development framework for Ethereum
Brownie - Python development framework for Ethereum

erc1319://erc20.snakecharmers.eth
└─dai-dai@1.0.0
Expand Down Expand Up @@ -262,7 +262,7 @@ Once the package is successfully released, Brownie provides you with a registry
::

$ brownie ethpm release erc20.snakecharmers.eth registry_owner
Brownie v1.1.0 - Python development framework for Ethereum
Brownie - Python development framework for Ethereum

Generating manifest and pinning assets to IPFS...
Pinning "NFToken.sol"...
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Once you have installed, type ``brownie`` to verify that it worked:
::

$ brownie
Brownie v1.0.0 - Python development framework for Ethereum
Brownie - Python development framework for Ethereum

Usage: brownie <command> [<args>...] [options <args>]

Expand Down
6 changes: 3 additions & 3 deletions docs/interaction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Interacting with your Contracts

Brownie has three main components that you can use while developing your project:

1. The :ref:`console<console>` is useful for quick testing and debugging.
2. :ref:`Scripts<scripts>` allow you to automate common tasks and handle deployments.
3. :ref:`Tests<tests-intro>` help to ensure that your contracts are executing as intended and do not contain any bugs.
1. The :ref:`console<console>` is useful for quick testing and debugging.
2. :ref:`Scripts<scripts>` allow you to automate common tasks and handle deployments.
3. :ref:`Tests<tests-intro>` help to ensure that your contracts are executing as intended and do not contain any bugs.

.. _console:

Expand Down
14 changes: 7 additions & 7 deletions docs/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ Structure of a Project

Every Brownie project includes the following folders:

* ``contracts/``: Contract sources
* ``interfaces/``: Interface sources
* ``scripts/``: Scripts for deployment and interaction
* ``tests/``: Scripts for testing the project
* ``brownie-config.yaml``: Configuration file for the project
* ``contracts/``: Contract sources
* ``interfaces/``: Interface sources
* ``scripts/``: Scripts for deployment and interaction
* ``tests/``: Scripts for testing the project
* ``brownie-config.yaml``: Configuration file for the project

The following folders are also created, and used internally by Brownie for managing the project. You should not edit or delete files within these folders.

* ``build/``: Project data such as compiler artifacts and unit test results
* ``reports/``: JSON report files for use in the GUI
* ``build/``: Project data such as compiler artifacts and unit test results
* ``reports/``: JSON report files for use in the GUI

See :ref:`build-folder` for more information about Brownie internal project folders.

Expand Down
2 changes: 1 addition & 1 deletion docs/tests-pytest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ For example - if your project contains a contract named ``Token``, there will be
Handling Reverted Transactions
==============================

When running tests, transactions that revert raise a :func:`VirtualMachineError <brownie.exceptions.VirtualMachineError>` exception. To write assertions around this you can use ``brownie.reverts`` as a context manager. It functions very similarly to `pytest.raises <https://docs.pytest.org/en/latest/assert.html#assertraises>`_.
When running tests, transactions that revert raise a :func:`VirtualMachineError <brownie.exceptions.VirtualMachineError>` exception. To write assertions around this you can use :func:`brownie.reverts <brownie.test.plugin.RevertContextManager>` as a context manager. It functions very similarly to `pytest.raises <https://docs.pytest.org/en/latest/assert.html#assertraises>`_.


.. code-block:: python
Expand Down

0 comments on commit ea242ba

Please sign in to comment.