Skip to content

Commit

Permalink
Improve directory handling
Browse files Browse the repository at this point in the history
 - since dict_tools must be installed as a poetry dep on GHA, we can't
   rely on it being in a specific directory relative to the main repo;

 - so we need do a better job at setting the standard directories;

 - i've introduced DirUtils to handle that more or less globally.
  • Loading branch information
p-goulart committed Jan 29, 2024
1 parent 401791d commit 7301bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
from os import path, environ
import pathlib

LT_VER = "6.4-SNAPSHOT"
LATIN_1_ENCODING = 'ISO-8859-1'
2 changes: 2 additions & 0 deletions tests/test_variant.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from lib.variant import Variant
import lib.global_dirs as gd


class TestVariant:
"""Test the Variant class."""
def test_constructor(self):
gd.initialise_dir_utils('foo')
variant = Variant('pt-BR')
assert variant.lang == 'pt'
assert variant.country == 'BR'
Expand Down

0 comments on commit 7301bbc

Please sign in to comment.