mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-30 01:39:56 +03:00
testing things out
This commit is contained in:
parent
9e53e543a1
commit
2ce38844a2
|
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from ..utils.comparison_helper import raise_assertion_if
|
||||||
|
|
||||||
|
|
||||||
def get_version(version=None):
|
def get_version(version=None):
|
||||||
|
@ -44,10 +45,14 @@ def get_complete_version(version=None):
|
||||||
if version is None:
|
if version is None:
|
||||||
from graphene import VERSION as version
|
from graphene import VERSION as version
|
||||||
else:
|
else:
|
||||||
if len(version) is not 5:
|
raise_assertion_if(
|
||||||
raise AssertionError("Version needs to be 5")
|
condition=len(version) is not 5, message="Version needs to be 5"
|
||||||
if version[3] not in ("alpha", "beta", "rc", "final"):
|
)
|
||||||
raise AssertionError("Release version is unkown")
|
|
||||||
|
raise_assertion_if(
|
||||||
|
condition=version[3] not in ("alpha", "beta", "rc", "final"),
|
||||||
|
message="Release version is unkown",
|
||||||
|
)
|
||||||
|
|
||||||
return version
|
return version
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user