diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d9010d8c1c6fbf2333af022d2a34dd5f3170d39..2f4c34a028ccfea9e337a63b086510972bca8914 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,9 @@ -image: python:3.9-buster +image: ubuntu:latest before_script: - - apt-get update - - apt install -y xvfb libssl-dev firefox-dev firefox-geckodriver openssl + - apt-get update -y + - apt install -y python3-pip python3.10 python-is-python3 + - apt install -y xvfb libssl-dev firefox firefox-geckodriver openssl - openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes - pip install -r requirements.txt diff --git a/src/unlearn/tokenpage.py b/src/unlearn/tokenpage.py index 27c7b22282ea4dcbce4e53a41be62b6eb2a958f2..89e384002011577019029d2632344b1a61855552 100644 --- a/src/unlearn/tokenpage.py +++ b/src/unlearn/tokenpage.py @@ -10,4 +10,11 @@ if __name__ == "__main__": os.mkdir(pages) with open(pages + "/index.html", 'w') as f: f.write("hello world! " + password) + from learn_config import LearnConfig + + lc = LearnConfig(password=password) + print("Is token valid?", lc.is_token_valid()) + print("token", lc.cc['access_token']) + print("refresh", lc.cc['refresh_token']) +