Skip to content

Commit

Permalink
Demonstrate mention_extractor.apply with clear=True fails if it's the…
Browse files Browse the repository at this point in the history
… second run
  • Loading branch information
Hiromu Hota committed May 20, 2020
1 parent 0dc064d commit 789d4b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e/test_incremental.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ def test_incremental():
assert session.query(Part).count() == 11
assert session.query(Temp).count() == 8

# Test if clear=True works
mention_extractor.apply(docs, parallelism=PARALLEL, clear=True)

assert session.query(Part).count() == 11
assert session.query(Temp).count() == 8

# Candidate Extraction
PartTemp = candidate_subclass("PartTemp", [Part, Temp])

Expand Down

0 comments on commit 789d4b1

Please sign in to comment.