Add pull container image, token config

This commit is contained in:
Aurelien Vaillant
2022-03-02 14:20:48 +01:00
parent 948b4077e6
commit 72becd2538
3 changed files with 25 additions and 10 deletions
+10
View File
@@ -4,6 +4,16 @@ import sys
import zipfile
from .issue import ArchiveFolderSourceNotFound
from pathlib import Path
def read_token(file: str = 'token.txt') -> str:
"""From tests folder, return a token string, in a dedicated file"""
token_file = Path(os.getcwd(), 'tests', file)
with open(token_file, 'r') as f:
token = f.read()
return token
def generate_archive(list_clean: list, name: str):