commercetest / nlnet

Analysis of the opensource codebases of NLnet sponsored projects.
MIT License
0 stars 0 forks source link

Implement test cases for the script `github_repo_request_local.py` #48

Closed tnzmnjm closed 2 months ago

tnzmnjm commented 3 months ago
  1. Implement Pytest Testing for get_base_repo_urlfunction in github_repo_request_local.py to able to test the desired behaviours with a variety of pseudo URLs.

  2. Writing test cases for if "repourl" in df.columns: incomplete_urls = df[ df["repourl"].apply(lambda x: len(x.rstrip("/").split("/")) < 5) ]

  3. writing test cases for for url in incomplete_urls["repourl"]: logger.info(f"Excluding the repourl : {url}") df = df[df["repourl"].apply(lambda x: len(x.rstrip("/").split("/")) >= 5)]

tnzmnjm commented 3 months ago
tnzmnjm commented 2 months ago
tnzmnjm commented 2 months ago