Skip to content

Commit

Permalink
[Tests] Add a new test for the supported format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobbestigrou committed Apr 19, 2017
1 parent adc9660 commit e879a98
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/no_supported_format_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import os

import pytest

from pylocwolowitz import Pylocwolowitz


def test_no_supported_format():
directory = os.getcwd() + '/i18n' if 'tests' in os.getcwd(
) else os.getcwd() + '/tests/i18n'

with pytest.raises(ValueError):
Pylocwolowitz(directory, 'format')

0 comments on commit e879a98

Please sign in to comment.