-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pytest dependency and run command to test.yml, moved the tests … (
#5) * Added pytest dependency and run command to test.yml, moved the tests to a tests directory and created three test definitions. * Fix typo in test method name. Remove redundant test from yml. Remove the run from the Dockerfile.
- Loading branch information
1 parent
58a9793
commit 1186a04
Showing
4 changed files
with
17 additions
and
9 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
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
from rfc1924 import * | ||
import pytest | ||
|
||
def test_encode(): | ||
assert encode("2345:425:2ca1::567:5673:23b5") == "AN?6(i3Y+yVr74uX@J3P" | ||
|
||
def test_decode(): | ||
assert decode("AN?6(i3Y+yVr74uX@J3P") == "2345:425:2ca1::567:5673:23b5" | ||
|
||
def test_savings(): | ||
assert (savings("2345:425:2ca1::567:5673:23b5") == 'You saved 28%') |