Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • feat/mnemonic-import
  • enh/forget-account-dev-mode
  • develop
  • hugo/i18n
  • feature/test_ci
  • feature/release-description
  • hugo-dev
  • demo-cgeek
  • 2.0.0-alpha42
  • 2.0.0-alpha41
  • 2.0.0-alpha40
  • 2.0.0-alpha38
  • 2.0.0-alpha37
  • 2.0.0-alpha36
  • 2.0.0-alpha22
  • 2.0.0-alpha21
  • 2.0.0-alpha20
  • 2.0.0-alpha13
  • 2.0.0-alpha10
  • 2.0.0-alpha2
  • 2.0.0-alpha3
22 results

README.md

Blame
  • Forked from clients / Cesium-grp / cesium2s
    Source project has a limited visibility.
    test_end_to_end.py 1.22 KiB
    from click.testing import CliRunner
    from silkaj.cli_tools import cli
    
    
    def test_info():
        """tests 'silkaj info' returns a number of members"""
    
        result = CliRunner().invoke(cli, ["info"])
        assert "Number of members" in result.output
    
    
    # def test_wot():
    #    """tests 'silkaj wot' returns a number of members"""
    #
    #    output = CliRunner().invoke(cli, ["wot", "moul"]).output
    #    assert "moul (GfKER…) from block #0-E3B0C44298FC1…" in output
    #    assert "received_expire" in output
    #    assert "received" in output
    #    assert "sent" in output
    #    assert "sent_expire" in output
    #
    #
    # def test_id():
    #    """tests 'silkaj id' certification on gtest"""
    #
    #    result = CliRunner().invoke(cli, ["--gtest", "id", "elois"])
    #    assert "D7CYHJXjaH4j7zRdWngUbsURPnSnjsCYtvo6f8dvW3C" in result.output
    #
    #
    # def test_amount():
    #    """tests 'silkaj amount' command on gtest"""
    #
    #    result = CliRunner().invoke(
    #        cli, ["--gtest", "balance", "3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"]
    #    )
    #    output = result.output
    #    assert "Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj" in output
    #    assert "Total Relative     =" in output
    #    assert "UD ĞTest" in output
    #    assert "Total Quantitative =" in output