Skip to content

Commit

Permalink
install language pack in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Meesch committed Jun 18, 2024
1 parent 46d9946 commit a8bfeb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/corpora/ublad/tests/test_ublad.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import locale
from corpora.ublad.ublad import transform_date
import datetime
import subprocess


def test_transform_date():
# Install the Dutch language package for locale
subprocess.run(['sudo', 'apt-get', 'install', 'language-pack-nl'])
datestring = '6 september 2007'
goal_date = datetime.date(2007, 9, 6)
date = transform_date(datestring)
Expand Down

0 comments on commit a8bfeb1

Please sign in to comment.