Skip to content

Commit

Permalink
presents initial test for runner
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfalcao committed Aug 12, 2023
1 parent f3b9611 commit 20f2159
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test tests: clean | $(VENV)/bin/pytest # $(VENV)/bin/nosetests # @$(VENV)/bin/no

# run main command-line tool
run: | $(MAIN_CLI_PATH)
@$(MAIN_CLI_PATH) --help
@$(MAIN_CLI_PATH) tests/runner/test_eins.py

# Pushes release of this package to pypi
push-release: dist # pushes distribution tarballs of the current version
Expand Down
23 changes: 0 additions & 23 deletions sure/cli.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
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")
6 changes: 6 additions & 0 deletions tests/runner/test_eins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-


def test_assert():
"testing a simple assertion with sure runner"
assert True

0 comments on commit 20f2159

Please sign in to comment.