-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e test for repro, fix formula.py newline
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ docs/build | |
coverage.xml | ||
.coverage | ||
test.py | ||
pip-wheel-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
End-to-end tests against | ||
https://airtable.com/appaPqizdsNHDvlEm/tblfbOcVkVnnKxurq/viwhi8Qtuw2psSdGG?blocks=hide | ||
""" | ||
|
||
import os | ||
from datetime import datetime | ||
from pyairtable import Table | ||
from pyairtable.utils import datetime_to_iso_str, date_to_iso_str | ||
|
||
apikey = os.environ["AIRTABLE_KEY"] | ||
base_id = "appaPqizdsNHDvlEm" | ||
table_name = "TEST_TABLE" | ||
table = Table(apikey, base_id, table_name) | ||
|
||
table.create( | ||
{ | ||
"text": "Some Text", | ||
"number": 5, | ||
"boolean": True, | ||
"phone": "540-123-4567", | ||
"date": date_to_iso_str(datetime.now()), | ||
"datetime": datetime_to_iso_str(datetime.now()), | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters