def test_build_folders_staging(self, root_directory):
        root = root_directory
        standard = load_repos(ospath.join(root_path, repos_path))[0]['nen3610']

        build_folders(sources_path, staging_path, standard, root, '', build_path)

        assert root.exists(ospath.join(build_path, staging_path, 'informatiemodel', 'nen3610'))
    def test_create_infomodel_homepage_staging(self, root_directory):
        root = root_directory

        standard = load_repos(ospath.join(root_path, repos_path))[0]['nen3610']

        create_infomodel_homepage(root, sources_path, assets_path, build_path, staging_path, '', standard)

        assert root.exists(ospath.join(build_path, staging_path, 'nen3610', 'index.html'))
    def test_build_folders_staging(self, root_directory):
        """ Checks whether the staging folders have been built successfully"""

        root = root_directory
        standard = load_repos(ospath.join(root_path, repos_path))[0]['nen3610']

        build_folders(sources_path, staging_path, standard, root, '', build_path)

        assert root.exists(ospath.join(build_path, staging_path, 'informatiemodel', 'nen3610'))
    def test_create_infomodel_homepage_staging(self, root_directory):
        root = root_directory

        standard = load_repos(ospath.join(root_path, repos_path))[0]['nen3610']

        create_infomodel_homepage(root, sources_path, assets_path, build_path,
                                  staging_path, '', standard)

        assert root.exists(
            ospath.join(build_path, staging_path, 'nen3610', 'index.html'))
    def test_build_folders_staging(self, root_directory):
        root = root_directory
        standard = load_repos(ospath.join(root_path, repos_path))[0]['nen3610']

        build_folders(sources_path, staging_path, standard, root, '',
                      build_path)

        assert root.exists(
            ospath.join(build_path, staging_path, 'informatiemodel',
                        'nen3610'))