Skip to content

Commit

Permalink
Fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehelman committed Apr 30, 2023
1 parent d278019 commit 7d33c56
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,22 @@ Example output:

Pre-requisites:

Mac
```
brew cask install pdftotext
```

Ubuntu
```
sudo apt-get install -y poppler-utils
```

```
wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.04.tar.gz \
&& tar -xvf xpdf-tools-linux-4.04.tar.gz \
&& cp xpdf-tools-linux-4.04/bin64/pdftotext /usr/local/bin/pdftotext-4
```

Setup:

```bash
Expand Down
2 changes: 1 addition & 1 deletion tests/parsers/test_offense.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_offense_record_charged_with_number(report, state):
"""
matches = offense.OffenseRecordRowWithNumber(report, state).match(string)
assert matches is not None, "Regex match failed"
assert matches["count"] == "54"
assert matches["num"] == "54"
assert matches["action"] == "CHARGED"
assert matches["desc"] == "SPEEDING(80 mph in a 65 mph zone)"
assert matches["severity"] == "INFRACTION"
Expand Down
1 change: 1 addition & 0 deletions tests/test_records/expected_output/test_redacted_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
{
"Records": [
{
"Count": "01",
"Action": "CHARGED",
"Description": "POSSESS MARIJUANA UP TO 1/2 OZ",
"Severity": "MISDEMEANOR",
Expand Down
Loading

0 comments on commit 7d33c56

Please sign in to comment.