Ejemplo n.º 1
0
 def test_inventree_is_release(self):
     """Test that the release version check functions as expected"""
     self.assertEqual(inventree_extras.inventree_is_release(),
                      not version.isInvenTreeDevelopmentVersion())
Ejemplo n.º 2
0
def inventree_is_release(*args, **kwargs):
    return not version.isInvenTreeDevelopmentVersion()
Ejemplo n.º 3
0
def inventree_is_development(*args, **kwargs):
    return version.isInvenTreeDevelopmentVersion()
Ejemplo n.º 4
0
 def test_inventree_is_release(self):
     self.assertEqual(inventree_extras.inventree_is_release(),
                      not version.isInvenTreeDevelopmentVersion())
Ejemplo n.º 5
0
def inventree_is_release(*args, **kwargs):
    """Returns True if this is a release version of InvenTree"""
    return not version.isInvenTreeDevelopmentVersion()
Ejemplo n.º 6
0
def inventree_is_development(*args, **kwargs):
    """Returns True if this is a development version of InvenTree"""
    return version.isInvenTreeDevelopmentVersion()