Skip to content

Commit 6abdded

Browse files
committed
Update links for etl testing
Signed-off-by: Tim Paine <[email protected]>
1 parent fe0155c commit 6abdded

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ccflow/examples/etl/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class SiteContext(ContextBase):
1616
"""An example of a context object, passed into and between callable models from the command line."""
1717

18-
site: str = Field(default="https://en.wikipedia.org/wiki/Main_Page")
18+
site: str = Field(default="https://news.ycombinator.com")
1919

2020

2121
class RestModel(CallableModel):

ccflow/tests/examples/test_etl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
class TestEtl:
1010
def test_rest_model(self):
1111
rest = RestModel()
12-
context = SiteContext(site="https://en.wikipedia.org/wiki/Main_Page")
12+
context = SiteContext(site="https://news.ycombinator.com")
1313
result = rest(context)
1414
assert result.value is not None
15-
assert "Wikipedia" in result.value
15+
assert "Hacker News" in result.value
1616

1717
def test_links_model(self):
1818
with NamedTemporaryFile(suffix=".html") as file:

docs/wiki/ETL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ from ccflow import ContextBase
5252
from pydantic import Field
5353

5454
class SiteContext(ContextBase):
55-
site: str = Field(default="https://en.wikipedia.org/wiki/Main_Page")
55+
site: str = Field(default="https://news.ycombinator.com")
5656
```
5757

5858
This class has a single attribute, `site`.
5959
When we finish writing our ETL CLI, we will be able to pass in different contexts at runtime:
6060

6161
```bash
62-
etl-cli +context=[] # use default wikipedia
62+
etl-cli +context=[] # use default hacker news
6363
etl-cli +context=["http://lobste.rs"] # query lobste.rs instead
6464
```
6565

0 commit comments

Comments
 (0)