• Home
  • Raw
  • Download

Lines Matching full:environment

14 """Tests for env_setup.environment.
16 This tests the error-checking, context manager, and written environment scripts
17 of the Environment class.
19 Tests that end in "_ctx" modify the environment and validate it in-process.
21 Tests that end in "_written" write the environment to a file intended to be
22 evaluated by the shell, then launches the shell and then saves the environment.
23 This environment is then validated in the test process.
34 from pw_env_setup import environment
44 """Write env to a file then evaluate and save the resulting environment.
47 and dumps the environment to stdout. Parse that output into a dict and
51 env(environment.Environment): environment to write out
53 Returns dictionary of resulting environment.
69 # environment, no need to call 'source' or '.'.
79 # Parse environment from stdout of subprocess.
85 # environment variables. This module does not allow that so we can
98 """Tests for env_setup.environment."""
101 self.env = environment.Environment()
192 with self.assertRaises(environment.BadNameType):
196 with self.assertRaises(environment.BadValueType):
200 with self.assertRaises(environment.BadNameType):
204 with self.assertRaises(environment.BadValueType):
208 with self.assertRaises(environment.BadNameType):
212 with self.assertRaises(environment.BadValueType):
216 with self.assertRaises(environment.BadVariableName):
220 with self.assertRaises(environment.BadVariableName):
224 with self.assertRaises(environment.BadVariableName):
228 with self.assertRaises(environment.BadVariableName):
232 with self.assertRaises(environment.BadVariableName):
236 with self.assertRaises(environment.EmptyValue):
240 with self.assertRaises(environment.NewlineInValue):
244 with self.assertRaises(environment.BadVariableValue):
249 """Tests for env_setup.environment."""
269 self.env = environment.Environment(
471 env = environment.Environment()