def tearDown(self):
        if exists(self.update_fp):
            remove(self.update_fp)

        fp = join(get_mountpoint("uploads")[0][1], '1', 'uploaded_file.txt')
        if not exists(fp):
            with open(fp, 'w') as f:
                f.write('')

        r_client.flushdb()
Beispiel #2
0
    def tearDown(self):
        if exists(self.update_fp):
            remove(self.update_fp)

        fp = join(get_mountpoint("uploads")[0][1], '1', 'uploaded_file.txt')
        if not exists(fp):
            with open(fp, 'w') as f:
                f.write('')

        r_client.flushdb()
    def tearDown(self):
        base_dir = qdb.util.get_mountpoint('uploads')[0][1]
        fp = join(base_dir, '1', 'uploaded_file.txt')
        if not exists(fp):
            with open(fp, 'w') as f:
                f.write('')

        if exists(self.new_study_fp):
            remove(self.new_study_fp)

        r_client.flushdb()
    def tearDown(self):
        base_dir = qdb.util.get_mountpoint('uploads')[0][1]
        fp = join(base_dir, '1', 'uploaded_file.txt')
        if not exists(fp):
            with open(fp, 'w') as f:
                f.write('')

        if exists(self.new_study_fp):
            remove(self.new_study_fp)

        r_client.flushdb()
    def tearDown(self):
        base_dir = qdb.util.get_mountpoint("uploads")[0][1]
        fp = join(base_dir, "1", "uploaded_file.txt")
        if not exists(fp):
            with open(fp, "w") as f:
                f.write("")

        if exists(self.new_study_fp):
            remove(self.new_study_fp)

        r_client.flushdb()

        qdb.study.Study.delete(self.new_study.id)
Beispiel #6
0
    def tearDown(self):
        for fp in self._files_to_remove:
            if exists(fp):
                remove(fp)

        # Replace file if removed as part of function testing
        uploads_path = get_mountpoint('uploads')[0][1]
        fp = join(uploads_path, '1', 'uploaded_file.txt')
        if not exists(fp):
            with open(fp, 'w') as f:
                f.write('')

        r_client.flushdb()
Beispiel #7
0
    def tearDown(self):
        for fp in self._files_to_remove:
            if exists(fp):
                remove(fp)

        # Replace file if removed as part of function testing
        uploads_path = get_mountpoint('uploads')[0][1]
        fp = join(uploads_path, '1', 'uploaded_file.txt')
        if not exists(fp):
            with open(fp, 'w') as f:
                f.write('')

        r_client.flushdb()
Beispiel #8
0
 def tearDown(self):
     r_client.flushdb()