-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3b9611
commit 20f2159
Showing
3 changed files
with
7 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |