# Copyright (c) 2020, Jingrow and Contributors
# See license.txt


import jingrow
from jingrow.tests.utils import FrappeTestCase


class TestFrappeVersion(FrappeTestCase):
	def test_create_jingrow_version_with_default_dependencies(self):
		number = 99  # version with no fixtures
		jingrow_version = jingrow.get_pg(
			{
				"pagetype": "Jingrow Version",
				"name": f"Version {number}",
				"number": number,
			}
		).insert()
		self.assertEqual(len(jingrow_version.dependencies), 5)
