CityofSantaMonica / mds-provider

Python tools for working with MDS Provider data
https://github.com/openmobilityfoundation/mobility-data-specification
MIT License
18 stars 20 forks source link

Add fake server & basic tests against it #45

Closed ezheidtmann closed 5 years ago

ezheidtmann commented 5 years ago

Not ready to merge! Need guidance on the following details:

Tests can be run with python -m unittest discover mds.tests, from the repo root.

This PR adds the following:

thekaveman commented 5 years ago

This is really cool! Thank you for your efforts @ezheidtmann.

Regarding your points of clarification: #15 was more of a "cry for help" from me, as I have very little (read: none) experience with writing tests for Python projects.

Tagging @hunterowens @ian-r-rose who may be able to weigh in with their thoughts. I am open to whatever best-practices or standard approaches there are to the questions above.

ezheidtmann commented 5 years ago

Great. I've usually added tests either to an existing project or within Django, with has an opinionated approach and a custom test runner, so I'm not an expert on the Python community customs here.

thekaveman commented 5 years ago

Tagging @johnclary as well, since he seems to have a ton of Python experience (yes, I stalked your profile John!)

ezheidtmann commented 5 years ago

Rebased on #46 and dev branch. Added more features to server.

ezheidtmann commented 5 years ago

Just pushed 1) changes to ProviderClient to emphasize iteration, and 2) a test for the non-overlapping trips query problem. Related to #46

thekaveman commented 5 years ago

Hey @ezheidtmann... i made some comments over in your other #46.

The latest release has evolved this library and taken into consideration many of the points you made over these PR conversations, so thank you. Closing this PR but would welcome new work on top of master.