davidoskky
  • Joined on 2022-08-16
davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:44:06 +00:00
Repository Unit Tests

I am confused, as far as I remember update_sources was introduced to limit the amount of api calls to selfoss because that was heavy on the database and created some problems. That is also how it…

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:40:00 +00:00
Repository Unit Tests

If update_sources handles tag fetching then it shouldn't. Maybe it would be better to rename update_sources so that it becomes more clear that it handles tags as well? I do get confused at times.

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:38:46 +00:00
Repository Unit Tests

I would expect tags to be fetched from the database, since the api should not be used.

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:38:14 +00:00
Repository Unit Tests

If update_sources handles tags fetching, then tags should not be fetched using the api.

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:35:48 +00:00
Repository Unit Tests

As above

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:28:54 +00:00
Repository Unit Tests

This function is supposed to store articles for the background; it should store all articles independently of the tags selected by the user in the foreground.

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:26:58 +00:00
Repository Unit Tests

Why is tags caching handled by update_sources?

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:22:39 +00:00
Repository Unit Tests

Yes, this is intended. Since items caching is disabled I would expect the function not to access items in the database. Maybe it's better if I define that item within this function to avoid…

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:19:20 +00:00
Repository Unit Tests

Same as above.

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:18:48 +00:00
Repository Unit Tests

Same as above.

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:18:38 +00:00
Repository Unit Tests

The test can fail if the repository initialization generates an error; this is just a very general case to identify if something in the repository initialization is broken. All other tests would…

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:16:59 +00:00
Repository Unit Tests

Yes, I do understand. I suggest this edit just because it would allow to keep all information about the connectivity private within the repository and increase incapsulation. But there is no…

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:15:38 +00:00
Repository Unit Tests

This does not change the behavior of the function at all. runBlocking and Dispatchers.Main are basically the same thing. However, the testing framework for the common code does not support…

davidoskky commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-26 21:22:20 +00:00
Repository Unit Tests

I have added all the tests I could. I had some problems mocking the functions required to mark items as read/starred because of some problems with expect functions, which I'm unsure how to go…

e2afff0b8e Add comment
a382fc89ea Test item caching
3f0a3903ae Test refresh login information
f46f98cef0 Test login
bf6f1a917e Test update remote
71c0a4d340 Test delete source