test/first (#8)
All checks were successful
Pytest / pytest (3.12) (push) Successful in 28s
Pytest / pytest (3.13) (push) Successful in 31s
Pytest / pytest (3.14) (push) Successful in 32s

Introducing first very simple tests for tools.py

Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/8
This commit is contained in:
Justus Kuhlmann 2025-12-01 18:06:59 +01:00
commit d70e8d32ce
9 changed files with 1650 additions and 11 deletions

View file

@ -2,24 +2,24 @@ import os
import datalad.api as dl
def str2list(string):
def str2list(string: str):
return string.split(",")
def list2str(mylist):
s = ",".join(mylist)
return s
cached = True
cached: bool = True
def m2k(m):
def m2k(m: float) -> float:
return 1/(2*m+8)
def k2m(k):
def k2m(k: float) -> float:
return (1/(2*k))-4
def get_file(path, file):
def get_file(path: str, file: str):
if file == "backlogger.db":
print("Downloading database...")
else: