projects
/
OpenColorIO-Configs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve various definitions names consistency.
[OpenColorIO-Configs.git]
/
aces_1.0.0
/
python
/
aces_ocio
/
tests
/
tests_aces_config.py
diff --git
a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py
b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py
index
f41349e
..
a451379
100644
(file)
--- a/
aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py
+++ b/
aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py
@@
-11,13
+11,17
@@
import hashlib
import os
import re
import shutil
import os
import re
import shutil
+import sys
import tempfile
import unittest
import tempfile
import unittest
+sys.path.append(os.path.abspath(
+ os.path.join(os.path.dirname(__file__), '..', '..')))
+
from aces_ocio.utilities import files_walker
from aces_ocio.utilities import files_walker
-from aces_ocio.c
reate_aces_c
onfig import (
+from aces_ocio.config import (
ACES_OCIO_CTL_DIRECTORY_ENVIRON,
ACES_OCIO_CTL_DIRECTORY_ENVIRON,
-
create_ACES
_config)
+
generate
_config)
__author__ = 'ACES Developers'
__copyright__ = 'Copyright (C) 2014 - 2015 - ACES Developers'
__author__ = 'ACES Developers'
__copyright__ = 'Copyright (C) 2014 - 2015 - ACES Developers'
@@
-34,8
+38,8
@@
__all__ = ['REFERENCE_CONFIG_ROOT_DIRECTORY',
# TODO: Investigate how the current config has been generated to use it for
# tests.
# TODO: Investigate how the current config has been generated to use it for
# tests.
-
#
REFERENCE_CONFIG_ROOT_DIRECTORY = os.path.abspath(
-
#
os.path.join(os.path.dirname(__file__), '..', '..', '..'))
+REFERENCE_CONFIG_ROOT_DIRECTORY = os.path.abspath(
+
os.path.join(os.path.dirname(__file__), '..', '..', '..'))
REFERENCE_CONFIG_ROOT_DIRECTORY = '/colour-science/colour-ramblings/ocio/aces'
HASH_TEST_PATTERNS = ('\.3dl', '\.lut', '\.csp')
REFERENCE_CONFIG_ROOT_DIRECTORY = '/colour-science/colour-ramblings/ocio/aces'
HASH_TEST_PATTERNS = ('\.3dl', '\.lut', '\.csp')
@@
-115,8
+119,8
@@
class TestACESConfig(unittest.TestCase):
generated configuration and comparing them to the existing one.
"""
generated configuration and comparing them to the existing one.
"""
- self.assertTrue(
create_ACES
_config(self.__aces_ocio_ctl_directory,
-
self.__temporary_directory))
+ self.assertTrue(
generate
_config(self.__aces_ocio_ctl_directory,
+ self.__temporary_directory))
reference_hashes = self.directory_hashes(
REFERENCE_CONFIG_ROOT_DIRECTORY,
reference_hashes = self.directory_hashes(
REFERENCE_CONFIG_ROOT_DIRECTORY,