Open kiraoyd opened 1 year ago
As it stands, we can sweep the file for Campsites labeled "open", but its wrapped up with retrieving the emails as it goes. This should get split into two functions, so we can easily run a check for availability changes each time we update the file. I will take this issue on.
The finished system would be consistently webscraping to keep the file updated with the most current information for the campsites our system monitors. We need functionality that can check the file for changes to each campsites availability status, on each update.
I'm not sure how to best mock this up without real webscraping. Maybe we could just write the classes that sweep the file for changes using some sort of flag variable in the file that gets flipped on when the availability changes, and flipped off during the sweep (to mark that the change has been registered). The we could pass tests various versions of our file with differing availabilities to mock a change, and run the sweep to make sure it correctly catches the change.