-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
66 additions
and
23 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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kivy | ||
kivymd |
Empty file.
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,46 @@ | ||
import sys | ||
|
||
wd = '/home/sr-ronn-m/Documents/Python Projects/CurrencyConverterApp/' | ||
|
||
sys.path.insert(0, wd) | ||
|
||
import UIAssets | ||
|
||
def test_get_currencies_default() -> None: | ||
|
||
result = UIAssets.get_currencies() | ||
|
||
assert type(result) is dict | ||
|
||
def test_convert_default() -> None: | ||
|
||
req_format_0 = 'USD' | ||
req_format_1 = 'AUD' | ||
req_format_2 = 1000 | ||
|
||
result = UIAssets.convert(req_format_0, req_format_1, req_format_2) | ||
|
||
assert type(result) is float or result == 'Connection Error!' | ||
|
||
def test_convert_default_str() -> None: | ||
|
||
req_format_0 = 'USD' | ||
req_format_1 = 'AUD' | ||
req_format_2 = '1000' | ||
|
||
result = UIAssets.convert(req_format_0, req_format_1, req_format_2) | ||
|
||
assert type(result) is float or result == 'Connection Error!' | ||
|
||
def test_convert_unknown_str() -> None: | ||
|
||
req_format_0 = 'USD' | ||
req_format_1 = 'AUD' | ||
req_format_2 = 'ABC' | ||
|
||
result = UIAssets.convert(req_format_0, req_format_1, req_format_2) | ||
|
||
print('true') | ||
|
||
assert result == 'Database Error!' or result == 'Connection Error!' | ||
|