Skip to content
Snippets Groups Projects

added fake customer_id

Merged Mohammad Torkashvand requested to merge feature/add-mock-customer-id into develop
7 files
+ 48
16
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 18
0
 
from typing import Optional
 
 
 
def all_customers() -> list[dict]:
 
return [
 
{
 
"id": "8f0df561-ce9d-4d9c-89a8-7953d3ffc961",
 
"name": "Geant",
 
},
 
]
 
 
 
def get_customer_by_name(name: str) -> Optional[dict]:
 
for customer in all_customers():
 
if customer["name"] == name:
 
return customer
 
 
return None
Loading