test_db.py 378 B

12345678910111213141516
  1. from gemini_antenna.db import AntennaDB
  2. def test_queue(db: AntennaDB):
  3. feed1 = "gemini://example.com/feed"
  4. feed2 = "https://example.org/atom.xml"
  5. db.queueFeed(feed1, feed2)
  6. queue = db.getQueue()
  7. assert feed1 in queue
  8. assert feed2 in queue
  9. db.deleteFromQueue(feed2)
  10. queue = db.getQueue()
  11. assert feed1 in queue
  12. assert feed2 not in queue