Permalink
Browse files

Fix tests

  • Loading branch information...
odarbelaeze committed Jul 1, 2017
1 parent 518e776 commit 7886702ba6573547f83c8d2b744d58a42a1b2822
Showing with 2 additions and 2 deletions.
  1. +1 −0 condor/models/document.py
  2. +1 −2 test/test_scripts.py
@@ -118,6 +118,7 @@ def mappings_from_files(record_type, files,
record['keywords'] = '; '.join(record.get('keywords', ''))
record.update(kwargs)
records[record['hash']] = record
record.pop('file', None)
if full_text_path:
record['full_text_path'] = Document.load_full_text(
record,
View
@@ -31,13 +31,12 @@ def test_populate_bibtex(runner):
assert 'The database contains 3 records' in res.output
def test_populate_bibtex(runner):
def test_populate_bibtex_with_language_filter(runner):
res = runner.invoke(
bibcreate,
['--verbose', '-l', 'english', 'bib', 'data/bib/oaa.bib']
)
assert res.exit_code == 0
assert 'Filter the following languages only: english' in res.output
assert 'The database contains 0 records' in res.output

0 comments on commit 7886702

Please sign in to comment.