Skip to content

Commit 4f14f6f

Browse files
authored
Week 3 QA (#81)
1 parent 1e84cae commit 4f14f6f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

week_3/tests/test_answer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def test_get_s3_data(stock_list):
124124

125125

126126
def test_process_data(stocks):
127-
assert process_data(stocks) == Aggregation(date=datetime.datetime(2022, 1, 3, 0, 0), high=12.0)
127+
with build_op_context() as context:
128+
assert process_data(context, stocks) == Aggregation(date=datetime.datetime(2022, 1, 3, 0, 0), high=12.0)
128129

129130

130131
def test_put_redis_data(aggregation):

week_3/workspaces/project/week_3.py

+5
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,31 @@
2222

2323
@op
2424
def get_s3_data():
25+
# You can reuse the logic from the previous week
2526
pass
2627

2728

2829
@op
2930
def process_data():
31+
# You can reuse the logic from the previous week
3032
pass
3133

3234

3335
@op
3436
def put_redis_data():
37+
# You can reuse the logic from the previous week
3538
pass
3639

3740

3841
@op
3942
def put_s3_data():
43+
# You can reuse the logic from the previous week
4044
pass
4145

4246

4347
@graph
4448
def week_3_pipeline():
49+
# You can reuse the logic from the previous week
4550
pass
4651

4752

week_4/workspaces/project/week_4.py

+4
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@
77

88
@asset
99
def get_s3_data():
10+
# You can reuse the logic from the previous week
1011
pass
1112

1213

1314
@asset
1415
def process_data():
16+
# You can reuse the logic from the previous week
1517
pass
1618

1719

1820
@asset
1921
def put_redis_data():
22+
# You can reuse the logic from the previous week
2023
pass
2124

2225

2326
@asset
2427
def put_s3_data():
28+
# You can reuse the logic from the previous week
2529
pass
2630

2731

0 commit comments

Comments
 (0)