File: cli.py

package info (click to toggle)
python-sure 2.0.1%2Bgit.2023.02.06.3aef950b7c-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 744 kB
  • sloc: python: 3,512; makefile: 255; sh: 12
file content (29 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os


from sure.version import version


def entrypoint():
    print(f"sure version {version}\n")
    print("Example usage in Python:\n\033[1;32m")
    print(
        """
import sure


def test_something():
    # Then instead of

    assert x.upper() == 'FOO'

    x = "foo"

    # you can write assertions like:
    x.upper().should.equal('FOO')
""".strip()
    )

    print("\033[0m\n----\n\033[1;33m")
    print("Full documentation: \033[1;34mhttps://sure.readthedocs.io/")
    print("\033[0m")