-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Python-World/main
v0.0.2 stable version
- Loading branch information
Showing
4 changed files
with
110 additions
and
31 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 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,17 @@ | ||
""" | ||
Test related to utilities | ||
""" | ||
import os | ||
|
||
from s_tool.utils import is_local | ||
|
||
|
||
def test_local_path(): | ||
"""test local file path or URL""" | ||
URL_PATH = "http://www.google.com" | ||
URL_PATH1 = "www.google.com" | ||
LOCAL_PATH = "tests/index.html" | ||
|
||
assert URL_PATH == is_local(URL_PATH) | ||
assert "file" in is_local(os.path.abspath(LOCAL_PATH)) | ||
assert URL_PATH1 == is_local(URL_PATH1) |