Skip to content

Commit 70571c3

Browse files
committed
Fix integ tests
1 parent 86bf743 commit 70571c3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

tests/integration/storage/test_blob_pipeline_storage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ async def test_find():
2121
items = list(
2222
storage.find(base_dir="input", file_pattern=re.compile(r".*\.txt$"))
2323
)
24-
items = [item[0] for item in items]
2524
assert items == []
2625

2726
await storage.set(
@@ -30,12 +29,10 @@ async def test_find():
3029
items = list(
3130
storage.find(base_dir="input", file_pattern=re.compile(r".*\.txt$"))
3231
)
33-
items = [item[0] for item in items]
3432
assert items == ["input/christmas.txt"]
3533

3634
await storage.set("test.txt", "Hello, World!", encoding="utf-8")
3735
items = list(storage.find(file_pattern=re.compile(r".*\.txt$")))
38-
items = [item[0] for item in items]
3936
assert items == ["input/christmas.txt", "test.txt"]
4037

4138
output = await storage.get("test.txt")
@@ -91,20 +88,17 @@ async def test_child():
9188
storage = parent.child("input")
9289
await storage.set("christmas.txt", "Merry Christmas!", encoding="utf-8")
9390
items = list(storage.find(re.compile(r".*\.txt$")))
94-
items = [item[0] for item in items]
9591
assert items == ["christmas.txt"]
9692

9793
await storage.set("test.txt", "Hello, World!", encoding="utf-8")
9894
items = list(storage.find(re.compile(r".*\.txt$")))
99-
items = [item[0] for item in items]
10095
print("FOUND", items)
10196
assert items == ["christmas.txt", "test.txt"]
10297

10398
output = await storage.get("test.txt")
10499
assert output == "Hello, World!"
105100

106101
items = list(parent.find(re.compile(r".*\.txt$")))
107-
items = [item[0] for item in items]
108102
print("FOUND ITEMS", items)
109103
assert items == ["input/christmas.txt", "input/test.txt"]
110104
finally:

tests/integration/storage/test_cosmosdb_storage.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ async def test_find():
3030
try:
3131
try:
3232
items = list(storage.find(file_pattern=re.compile(r".*\.json$")))
33-
items = [item[0] for item in items]
3433
assert items == []
3534

3635
json_content = {
@@ -40,15 +39,13 @@ async def test_find():
4039
"christmas.json", json.dumps(json_content), encoding="utf-8"
4140
)
4241
items = list(storage.find(file_pattern=re.compile(r".*\.json$")))
43-
items = [item[0] for item in items]
4442
assert items == ["christmas.json"]
4543

4644
json_content = {
4745
"content": "Hello, World!",
4846
}
4947
await storage.set("test.json", json.dumps(json_content), encoding="utf-8")
5048
items = list(storage.find(file_pattern=re.compile(r".*\.json$")))
51-
items = [item[0] for item in items]
5249
assert items == ["christmas.json", "test.json"]
5350

5451
output = await storage.get("test.json")

tests/integration/storage/test_file_pipeline_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def test_find():
2121
base_dir="tests/fixtures/text/input", file_pattern=re.compile(r".*\.txt$")
2222
)
2323
)
24-
assert items == [(str(Path("tests/fixtures/text/input/dulce.txt")), {})]
24+
assert items == [str(Path("tests/fixtures/text/input/dulce.txt"))]
2525
output = await storage.get("tests/fixtures/text/input/dulce.txt")
2626
assert len(output) > 0
2727

0 commit comments

Comments
 (0)