Test git.add with a file
(self)
| 159 | |
| 160 | @pytest.mark.slow_test |
| 161 | def test_add_file(self): |
| 162 | """ |
| 163 | Test git.add with a file |
| 164 | """ |
| 165 | filename = "quux" |
| 166 | file_path = os.path.join(self.repo, filename) |
| 167 | with salt.utils.files.fopen(file_path, "w") as fp_: |
| 168 | fp_.write( |
| 169 | salt.utils.stringutils.to_str( |
| 170 | f"This is a test file named {filename}.\n" |
| 171 | ) |
| 172 | ) |
| 173 | ret = self.run_function("git.add", [self.repo, filename]) |
| 174 | self.assertEqual(ret, f"add '{filename}'") |
| 175 | |
| 176 | @pytest.mark.slow_test |
| 177 | def test_archive(self): |
nothing calls this directly
no test coverage detected