Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit 5df98ba

Browse files
committed
Update test file to be made at test time
1 parent 3fb2767 commit 5df98ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ def test_invalid_call(self):
3434
fs.location.get_detail([392873515], "", csv=True)
3535

3636
def test_file(self):
37+
with open(os.getcwd() + "/" + "sample.txt", "w+") as file:
38+
file.write("395133768")
39+
file.write("10212 BUCKEYE RD, Cleveland, Ohio")
40+
file.write("(41.48195701269418, -81.6138601319609)")
41+
3742
api_key = os.environ['FSF_API_KEY']
3843
fs = firststreet.FirstStreet(api_key)
3944
fs.location.get_detail("sample.txt", "property", csv=True)
@@ -44,4 +49,4 @@ def test_multi_type(self):
4449
fs.location.get_detail([395133768,
4550
"10212 BUCKEYE RD, Cleveland, Ohio",
4651
(41.48195701269418, -81.6138601319609)],
47-
"property", csv=True)
52+
"property", csv=True)

0 commit comments

Comments
 (0)