Common-SenseMakers / sensemakers

Sensemakers infrastructure for developing AI-based tools for semantic annotations of social posts. Cross-poster app to publish your semantic posts on different networks.
GNU General Public License v3.0
1 stars 2 forks source link

Fix/local development env #115

Open pepoospina opened 1 week ago

pepoospina commented 1 week ago

Create PR to discuss about this fix

pepoospina commented 1 week ago

Hey @weswalla, the fix seems to work for a hard-coded number of posts. This is useful for UI development in most part. One other requirement I wanted the mock to have was to be able to simulate a new post, to test, locally, the behavior of the autopost, feed update, etc.

There are some tests that assume this feature exist. So that if you call publish() then the post will be returned on the next fetch().

This means that this fix would let us have local development with hardcoded tweets but we would loose those tests.

Or maybe I'm missing something?