Conversation
* if no search index exists in mongo, one is created * if the fields of the existing search index in mongo do not match the current model, the existing search index is updated
* the academic calendars are now uploaded with an additional url field containing the box url for the calendar * bugfix: fixed past selector so that the links are extracted correctly and completely Co-authored-by: SuchDominion shijiand2022@gmail.com
* test data for this unit test is held in `parser/testdata/astra/` * currently only tests output of parsing one day: 2027-03-31 * made parser output deterministic by implementing sorting for buildings, rooms, and results * the deterministic output makes the unit test much easier
|
The failed checks are because it seems to be looking for a |
|
I noticed that each test case directory like case_000 had an input.html file so I imagine that something thought that my |
|
@bvaic can you fix merge conflicts? Thank you! Good work with this PR! 🎉 |
|
|
||
| sort.Slice(result, func(i, j int) bool { | ||
| return result[i].Date < result[j].Date | ||
| }) |
There was a problem hiding this comment.
Could this be outside the loop?
There was a problem hiding this comment.
This file looks identical to expected.json
| astraTestDir := "testdata" | ||
|
|
||
| // Clean up parser output before starting the test | ||
| os.Remove(filepath.Join(astraTestDir, "astra.json")) |
There was a problem hiding this comment.
instead of deleting the file, write the output to a temporary directory
Fixes: #150