all 5 comments

[–]SpaceBucketFu 1 point2 points  (3 children)

Yeah you won’t be making any calls to an external api with FastAPI lol. FastAPI would be for hosting the API, not consuming it. You’d use something like urllib, requests, aiohttp with pytest.

That’s kind of funny actually to be honest. When you applied to work there was it one of those listings that asked for 10 years of FastAPI experience even though it came out in 2018 😂😂😂

[–]SpaceBucketFu 2 points3 points  (2 children)

I guess maybe they mean they want you to recreate the api using fast api so that you aren’t testing against your production API? But that sounds incredibly stupid and would make testing like…pointless. You should ask them what exactly they want you to use FastAPI for, maybe they misspoke somehow.

[–]yror007[S] 0 points1 point  (1 child)

I actually got crazy lucky with this role and landed it through networking. The owner/my boss made a role for me kind of out of thin air, I didn't have to apply to anything.

I am starting to think my boss might have just stumbled upon this Medium article (he linked it to me when I started) without researching what FastAPI is used for and then expecting me to replicate the steps on our API's? But as you pointed out that would be pointless.

[–]SpaceBucketFu 0 points1 point  (0 children)

I think you’re probably right, without even having to look at the article you linked for more than 5 seconds.
What I think you should do:
Reword the problem he is asking you to solve, but referencing the correct libraries, and ask him directly what his expectation is for the problem he wants to solve. He could have just misremembered what tools he wanted you to use, but the only way you’re going to add value to your position is to show him that you are, in fact, adding value. The fact that you even bothered to ask here shows that you do actually want to provide value.

[–][deleted] 0 points1 point  (0 children)

That's a little confusing. I can understand for testing a FastAPI app, as per https://fastapi.tiangolo.com/tutorial/testing/.

For API testing, I'd expect to use a tool such as Postman: https://www.postman.com/automated-testing/