From 7efdf8f55bb1097bca183bfe74f596a4af8ec00a Mon Sep 17 00:00:00 2001 From: "Gergely Daroczi (@daroczig)" Date: Tue, 2 Jan 2024 11:28:38 +0100 Subject: [PATCH] update doctest for Location->Country --- sc_crawler/schemas.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sc_crawler/schemas.py b/sc_crawler/schemas.py index c916a3dd..318fda11 100644 --- a/sc_crawler/schemas.py +++ b/sc_crawler/schemas.py @@ -51,11 +51,12 @@ class Vendor(SQLModel, table=True): """Base class for cloud compute resource vendors. Examples: - >>> from sc_crawler import Location, Vendor, vendors - >>> aws_loc = Location(country='US', city='Seattle', address_line1='410 Terry Ave N') - >>> aws = Vendor(identifier='aws', name='Amazon Web Services', homepage='https://aws.amazon.com', location=aws_loc, founding_year=2002) + >>> from sc_crawler.schemas import Vendor + >>> from sc_crawler.lookup import countries + >>> aws = Vendor(id='aws', name='Amazon Web Services', homepage='https://aws.amazon.com', country=countries["US"], founding_year=2002) >>> aws Vendor(identifier='aws'... + >>> from sc_crawler import vendors >>> vendors.aws Vendor(identifier='aws'... """ # noqa: E501