Skip to content

Commit

Permalink
Merge pull request #46 from mwilbz/text-parser-tests
Browse files Browse the repository at this point in the history
Add unit tests for TextParser
  • Loading branch information
calebchiam authored Jun 2, 2020
2 parents 987b703 + 0fb534f commit 26f754a
Show file tree
Hide file tree
Showing 17 changed files with 603 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
python -m pip install .
- name: Run tests
run: |
cd tests && python run_all_tests.py
python convokit/tests/run_all_tests.py
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Please ensure that your contributions adhere to the existing coding style used t
Please ensure that all contributions have been tested for integration with existing ConvoKit code. This is particularly pertinent for contributions that make changes to existing functions or modules. Unit tests will run automatically on Github when a pull request is opened, and may be run locally with

```
cd tests/ && python run_all_tests.py
cd convokit/tests/ && python run_all_tests.py
```

after installing `pip install -r requirements.txt` and `pip install .` from the project directory.
Expand Down
Empty file added convokit/tests/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unittest

import os
os.chdir("..")
from convokit import Utterance, Corpus, Speaker
os.chdir("./tests")

class CorpusMerge(unittest.TestCase):
def test_dump_and_load_with_binary(self):
Expand Down
Empty file.
Loading

0 comments on commit 26f754a

Please sign in to comment.