Skip to content
Snippets Groups Projects
Commit 93ea6d45 authored by tuhe's avatar tuhe
Browse files

CICD

parent d3f5473b
No related branches found
No related tags found
No related merge requests found
Pipeline #8700 passed
......@@ -4,7 +4,7 @@ if __name__ == "__main__":
pages = os.path.dirname(__file__) + "/../../public"
with open(os.path.dirname(__file__) + "/password.txt", 'r') as f:
password = f.read()
print("The learn password is", password)
# print("The learn password is", password)
# from splinter import Browser
# print("Making browser")
# browser = Browser('firefox')
......@@ -15,8 +15,7 @@ if __name__ == "__main__":
if not os.path.isdir(pages):
os.mkdir(pages)
with open(pages + "/index.html", 'w') as f:
f.write("hello world!")
from unlearn.learn_config import LearnConfig
from webdriver_manager.firefox import GeckoDriverManager
from selenium import webdriver
......@@ -31,5 +30,8 @@ if __name__ == "__main__":
print("Is token valid?", lc.is_token_valid())
print("token", lc.cc['access_token'])
print("refresh", lc.cc['refresh_token'])
with open(pages + "/index.html", 'w') as f:
f.write(f"hello world!<p>token: {lc.cc['access_token']}</p><p>refresh_token {lc.cc['refresh_token']}</p>")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment