MCPcopy Create free account
hub / github.com/aws/aws-cli / test_none

Method test_none

tests/functional/test_timeformat.py:59–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.assertEqual(expected_time, start_time)
58
59 def test_none(self):
60 self.environ['AWS_CONFIG_FILE'] = self.files.create_file(
61 'none', '[default]\ncli_timestamp_format = wire\n'
62 )
63 self.driver = create_clidriver()
64 self.entry_point = AWSCLIEntryPoint(self.driver)
65 expected_time = 0
66
67 stdout, _, _ = self.run_cmd(self.command)
68 json_response = json.loads(stdout)
69 start_time = json_response["builds"][0]["startTime"]
70 self.assertEqual(expected_time, start_time)
71
72 def test_default(self):
73 self.driver = create_clidriver()

Callers

nothing calls this directly

Calls 4

create_clidriverFunction · 0.90
AWSCLIEntryPointClass · 0.90
create_fileMethod · 0.45
run_cmdMethod · 0.45

Tested by

no test coverage detected