Example #1
0
def test_get_scanned_dirs():

    assert get_scanned_dirs() == sorted([
        os.path.join(os.path.dirname(__file__), "staticfiles_dir"),
        os.path.join(os.path.dirname(__file__), "staticfiles_dir_with_prefix"),
        STATIC_ROOT
    ])
    def test_get_scanned_dirs(self):

        self.assertEqual(get_scanned_dirs(), sorted([
            os.path.join(os.path.dirname(__file__), "staticfiles_dir"),
            os.path.join(os.path.dirname(__file__), "staticfiles_dir_with_prefix"),
            STATIC_ROOT
        ]))
Example #3
0
def test_get_scanned_dirs():

    assert compilestatic.get_scanned_dirs() == sorted([
        os.path.join(os.path.dirname(__file__), "staticfiles_dir"),
        os.path.join(os.path.dirname(__file__), "staticfiles_dir_with_prefix"),
        settings.STATIC_ROOT
    ])
def test_get_scanned_dirs():

    assert compilestatic.get_scanned_dirs() == sorted([
        os.path.join(os.path.dirname(__file__), "compilestatic"),
        os.path.join(os.path.dirname(__file__), "staticfiles_dir"),
        os.path.join(os.path.dirname(__file__), "staticfiles_dir_with_prefix"),
        static_precompiler.settings.STATIC_ROOT,
    ])