mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Test more.
This commit is contained in:
parent
308ede18ff
commit
52cdff574b
4 changed files with 8 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -60,5 +60,6 @@ mo:
|
||||||
cp -f locale/it/LC_MESSAGES/pysol.mo locale/it_IT/LC_MESSAGES/pysol.mo
|
cp -f locale/it/LC_MESSAGES/pysol.mo locale/it_IT/LC_MESSAGES/pysol.mo
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@rm -f tests/individually-importing/*.py # To avoid stray files
|
||||||
python scripts/gen_individual_importing_tests.py
|
python scripts/gen_individual_importing_tests.py
|
||||||
runprove tests/individually-importing/*.py
|
runprove tests/individually-importing/*.py
|
||||||
|
|
4
pysollib/mygettext.py
Normal file
4
pysollib/mygettext.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- mode: python; coding: utf-8; -*-
|
||||||
|
def n_(x):
|
||||||
|
return x
|
|
@ -21,6 +21,8 @@
|
||||||
##
|
##
|
||||||
##---------------------------------------------------------------------------##
|
##---------------------------------------------------------------------------##
|
||||||
|
|
||||||
|
from pysollib.mygettext import n_
|
||||||
|
|
||||||
presets = {
|
presets = {
|
||||||
'None': {
|
'None': {
|
||||||
'preset': 'None',
|
'preset': 'None',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import os.path
|
import os.path
|
||||||
for module_name in ['pysollib.mfxutil', 'pysollib.move', 'pysollib.settings',]:
|
for module_name in ['pysollib.mfxutil', 'pysollib.move', 'pysollib.settings', 'pysollib.mygettext', 'pysollib.wizardpresets',]:
|
||||||
open(os.path.join(".", "tests", "individually-importing", "import_" + module_name + ".py"), 'w').write('''#!/usr/bin/env python
|
open(os.path.join(".", "tests", "individually-importing", "import_" + module_name + ".py"), 'w').write('''#!/usr/bin/env python
|
||||||
import sys
|
import sys
|
||||||
sys.path.append("./tests/lib")
|
sys.path.append("./tests/lib")
|
||||||
|
|
Loading…
Add table
Reference in a new issue