bedstuystrong / automation_prime

0 stars 5 forks source link

Airtable client testing mock #19

Open maybejustmaybe opened 3 years ago

maybejustmaybe commented 3 years ago

It would be super useful to have an airtable client mock class that could store its state in memory. Additionally, we should be able to serialize and deserialize its state (likely to json using pydantic) so we can generate mock data for testing.

We probably don't want to support some features like queries, so we should factor out all uses of unsupported features into private methods that can be mocked with simple replacements.