* only bibtex format is supported * all tests except test_repo.py and edit test pass * edit and update commands were not updated * removed --format argument from export, only bibtex is supported.
22 lines
413 B
Python
22 lines
413 B
Python
# -*- coding: utf-8 -*-
|
|
import unittest
|
|
import os
|
|
|
|
import dotdot
|
|
import fake_env
|
|
|
|
from pubs import endecoder, pretty
|
|
|
|
from str_fixtures import bibtex_raw0
|
|
|
|
class TestPretty(unittest.TestCase):
|
|
|
|
def test_oneliner(self):
|
|
|
|
decoder = endecoder.EnDecoder()
|
|
bibdata = decoder.decode_bibdata(bibtex_raw0)
|
|
pretty.bib_oneliner(bibdata['Page99'])
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|