File: testing.py

package info (click to toggle)
python-django-split-settings 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 452 kB
  • sloc: python: 292; makefile: 22; sh: 6
file content (16 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

# This settings will override settings in static.py
STATIC_ROOT = 'test_folder'


class TestingConfiguration:
    """Test class."""

    def __init__(self, testing_dir):
        """Public constructor."""
        self.test_path = os.path.join(testing_dir, STATIC_ROOT)

    def get_path(self):
        """Returns path."""
        return self.test_path