mirror of
https://ghproxy.net/https://github.com/serpwings/static-wordpress.git
synced 2025-10-04 07:17:46 +08:00
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
STATIC WORDPRESS: WordPress as Static Site Generator
|
|
A Python Package for Converting WordPress Installation to a Static Website
|
|
https://github.com/serpwings/static-wordpress
|
|
|
|
tests\test_project.py
|
|
|
|
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
|
|
|
|
<LICENSE_BLOCK>
|
|
The contents of this file are subject to version 3 of the
|
|
GNU General Public License (GPL-3.0). You may not use this file except in
|
|
compliance with the License. You may obtain a copy of the License at
|
|
https://www.gnu.org/licenses/gpl-3.0.txt
|
|
https://github.com/serpwings/static-wordpress/blob/master/LICENSE
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis,
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
|
|
specific language governing rights and limitations under the License.
|
|
</LICENSE_BLOCK>
|
|
"""
|
|
|
|
# +++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# INTERNAL IMPORTS
|
|
# +++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
from staticwordpress.core.project import Project
|
|
from staticwordpress.core.constants import PROJECT, REDIRECTS, HOST
|
|
|
|
|
|
def test_project_create():
|
|
p = Project()
|
|
assert p.status == PROJECT.NOT_FOUND
|
|
assert p.redirects == REDIRECTS.NONE
|
|
assert p.host == HOST.NETLIFY
|