From 4a91e5df382bf33d74f37279b5fbac08ffddb973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Pioru=C5=84ski?= <60135932+ppiorunski@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:36:47 +0100 Subject: [PATCH] Adding GPL header --- tests/kernel/test_process_template.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/kernel/test_process_template.py b/tests/kernel/test_process_template.py index da5bf71..d89d75c 100644 --- a/tests/kernel/test_process_template.py +++ b/tests/kernel/test_process_template.py @@ -1,3 +1,19 @@ +# p4templates - custom tooling to quickly create Helix Core depot/stream/group/permission setups. +# Copyright (C) 2024 Perforce Software, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + import pytest from collections import namedtuple from p4templates.kernel.process_template import ( @@ -255,14 +271,14 @@ def test_main(mocker, given_args): "p4templates.kernel.process_template.ArgumentParser", return_value=MockArgumentParser(given_args), ) - + main() if given_args.template or not given_args.name: m_get_template_preset.assert_not_called() else: m_get_template_preset.assert_called_once_with('template_name') - + if not (given_args.template or given_args.name): m_read_json.assert_not_called() else: