forgot to commit examples for tests

This commit is contained in:
Alvin Ryanputra 2024-12-31 17:31:08 -08:00
parent a10b399dbe
commit 74beb029ec

View file

@ -18,6 +18,20 @@ def fetch_and_process_data():
return processed
def fetch_and_transform_data():
# Use the global variable for the request
response = requests.get(API_URL)
raw_data = response.text
# Use code from another file (utils.py)
processor = DataProcessor()
processed = processor.process_data(raw_data)
transformed = processor.transform_data(processed)
return transformed
if __name__ == "__main__":
result = fetch_and_process_data()
print("Processed data:", result)