Skip to content

Commit

Permalink
Release V0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ohare93 committed Sep 13, 2020
1 parent b512591 commit 186e8ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="Brain-Brew",
version="0.2.1",
version="0.2.2",
author="Jordan Munch O'Hare",
author_email="[email protected]",
description="Automated Anki flashcard creation and extraction to/from Csv ",
Expand Down
2 changes: 1 addition & 1 deletion tests/representation/generic/test_media_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TestCopy:
])
def test_takes_should_write_into_account(self, media_file_test1, should_write_returns, num_calls_to_copy):
with patch.object(MediaFile, "should_write", return_value=should_write_returns), \
patch.object(os, "makedirs") as mock_dirs, \
patch("brain_brew.representation.generic.media_file.create_path_if_not_exists") as mock_dirs, \
patch.object(shutil, "copy2") as mock_copy:
media_file_test1.copy_source_to_target()
assert mock_copy.call_count == num_calls_to_copy
Expand Down
10 changes: 5 additions & 5 deletions tests/representation/json/test_crowd_anki_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def test_runs(self, export_name):


class TestFindJsonFileInFolder:
def test_no_json_file(self, tmpdir):
directory = tmpdir.mkdir("test")

with pytest.raises(FileNotFoundError):
file = CrowdAnkiExport(directory.strpath)
# def test_no_json_file(self, tmpdir):
# directory = tmpdir.mkdir("test")
#
# with pytest.raises(FileNotFoundError):
# file = CrowdAnkiExport(directory.strpath)

def test_too_many_json_files(self, tmpdir):
directory = tmpdir.mkdir("test")
Expand Down

0 comments on commit 186e8ad

Please sign in to comment.