Skip to content

Gedownloade bestanden kunnen niet worden geïmporteerd #38

@simonpauw

Description

@simonpauw

Error

Testing: weather2.py
:( prints the highest temperature
   "ModuleNotFoundError("No module named 'weather1'")" occured while trying to import the code
:| prints the date of the highest temperature
   can't check until another check passes
:( prints the lowest temperature
   "ModuleNotFoundError("No module named 'weather1'")" occured while trying to import the code
:| prints the date of the lowest temperature
   can't check until another check passes
(SP-local) testtest $ checkpy weather2

Test

https://github.com/spcourse/tests/tree/master/tests/weather

weather2Test.py:

import typing
from checkpy import *

only("weather2.py")
download("weather1.py", "https://raw.githubusercontent.com/spcourse/tests/refs/heads/master/data/weather1.py")

weather2.py

from weather1 import read_data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions