27 lines
555 B
Python
27 lines
555 B
Python
import sys
|
|
sys.path.insert(0, "../src")
|
|
|
|
from huizenbot import notify_email, RawListing
|
|
|
|
TEST_LISTING = RawListing(
|
|
url="https://example.com/test-woning",
|
|
source_makelaar="test",
|
|
adres="Teststraat 1",
|
|
stad="Delft",
|
|
postcode="2613AA",
|
|
prijs=350000,
|
|
hero_image_url=None,
|
|
)
|
|
|
|
TEST_TRAVEL = {
|
|
"fiets_mark": 20,
|
|
"fiets_michelle": 35,
|
|
"ov_mark": 30,
|
|
"ov_michelle": 45,
|
|
}
|
|
|
|
if __name__ == "__main__":
|
|
print("=== Email ===")
|
|
notify_email(TEST_LISTING, TEST_TRAVEL)
|
|
print(" verstuurd (check je inbox)")
|