Skip to content

Commit

Permalink
fixes formatting, removez az logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Mar 3, 2024
1 parent 8f1c724 commit a9d2440
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions sources/facebook_ads/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def get_data_chunked(
yield chunk


def enrich_ad_objects(
fb_obj_type: AbstractObject, fields: Sequence[str]
) -> Any:
def enrich_ad_objects(fb_obj_type: AbstractObject, fields: Sequence[str]) -> Any:
"""Returns a transformation that will enrich any of the resources returned by `` with additional fields
In example below we add "thumbnail_url" to all objects loaded by `ad_creatives` resource:
Expand Down
6 changes: 5 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from typing import List
import logging

# will run the following auto use fixtures for all tests ie. to cleanup the datasets, env variables and file system after each test
from tests.utils import (
Expand Down Expand Up @@ -44,3 +44,7 @@ def _create_pipeline_instance_id(self) -> str:
return pendulum.now().format("_YYYYMMDDhhmmssSSSS")

Pipeline._create_pipeline_instance_id = _create_pipeline_instance_id

# disable azure logging
for log in ["azure.core.pipeline.policies.http_logging_policy"]:
logging.getLogger(log).setLevel("ERROR")

0 comments on commit a9d2440

Please sign in to comment.