def test_assignment(self, container: AttributeContainer): first, second = self.gen_key(), self.gen_key() filename = fake.unique.file_name() with tmp_context(): with open(filename, "w", encoding="utf-8") as handler: handler.write(fake.paragraph(nb_sentences=5)) container[first].track_files(filename) container.wait() container[second] = container[first].fetch() container.sync() assert container[first].fetch_hash() == container[second].fetch_hash() assert (container[first].fetch_files_list() == container[second].fetch_files_list())
def wait(self, disk_only=False) -> None: """Wait for all the tracking calls to finish. Args: disk_only (bool, optional, default is False): If `True` the process will only wait for data to be saved locally from memory, but will not wait for them to reach Neptune servers. Defaults to `False`. You may also want to check `wait docs page`_. .. _wait docs page: https://docs.neptune.ai/api-reference/project#.wait """ return AttributeContainer.wait(self, disk_only=disk_only)