Ruben Opdebeeck
Ruben Opdebeeck
I hate dates. And there's like 10 different format options. I'll see if I can fix this.
Nah it's not too much effort, it's just a matter of translating `window.__MB__.$c.user.preferences.datetime_format` into a [format that moments.js understands](https://momentjs.com/docs/#/parsing/string/). Of course, that's yet another dependency, but oh well.
Tested this with the most important date format variations and all available languages, parses correctly every time. So it should remain working until some translations are updated, new formats are...
https://chatlogs.metabrainz.org/brainzbot/musicbrainz/msg/4801670/ Ticket concerning the 24:mm bug in MBS: https://tickets.metabrainz.org/browse/MBS-11671 Ticket to close and prevent this once and for all: https://tickets.metabrainz.org/browse/MBS-11672
For future reference: The 24:mm bug should have been fixed in MBS. Still, a more robust solution would be welcome.
As far as I know, with pytest-describe, everything that matches the following conditions is a test case: - It's a function nested inside of a *describe block*, a function that...
@jesus2099 wrapping your INLINE STUFF script into a `window` `load` event handler seems to be a viable workaround on my end. ``` window.addEventListener('load', function() { // rest of the script...
My two cents in regards to the example with the context managers: I think extracting the mocking into a fixture would be more elegant: ```python @pytest.fixture() def patched_thing_thinger(): with mock.patch('thing.thinger')...
/deploy-preview for beta testing because the extraction may not be ideal yet and the easiest way to find areas for improvement is by having people use the new version 🙂
/deploy-preview with new fixes > Maybe anchors could be an optional feature or we could ignore them unless there are no tags present in the HTML fragment? I've also been...