Skip to content
Snippets Groups Projects
Commit b49e1d02 authored by Alex Kashuba's avatar Alex Kashuba
Browse files

First commit

parents
No related branches found
No related tags found
No related merge requests found
.DS_Store
/.idea
__pycache__
\ No newline at end of file
from urllib.parse import urlparse
def parseurl(url):
result = urlparse(url)
return result.netloc
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
from pytest import fixture
from main import parseurl
import keyring
@fixture
def url():
return "https://kashuba@metadata.institut2c.physik.rwth-aachen.de:8123/api/"
def test_urlparse(url):
print()
print(parseurl(url))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment