Skip to content

Commit 2cc9fb1

Browse files
committed
make file public
1 parent 851c019 commit 2cc9fb1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

functions-python/tasks_executor/src/tasks/geojson/update_geojson_files_precision.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def _upload_file(bucket, file_path, geojson):
6868
json.dumps(geojson, ensure_ascii=False),
6969
content_type="application/geo+json",
7070
)
71+
processed_blob.make_public()
7172

7273

7374
@track_metrics(metrics=("time", "memory", "cpu"))

functions-python/tasks_executor/tests/tasks/geojson/test_update_geojson_files_precision.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ def __init__(self, bucket, name, blob_exists=True):
2626
def __enter__(self):
2727
return self
2828

29-
# def __exit__(self, exc_type, exc, tb):
30-
# return self.exists
31-
3229
def exists(self):
3330
return self.blob_exists
3431

@@ -45,6 +42,9 @@ def upload_from_string(self, content, content_type=None):
4542
# store as text for assertions
4643
self.bucket.uploaded[self.name] = content
4744

45+
def make_public(self):
46+
return
47+
4848

4949
class FakeBucket:
5050
def __init__(self, initial_blobs=None):

0 commit comments

Comments
 (0)