Skip to content

Instantly share code, notes, and snippets.

@erez-rabih
Created June 3, 2019 06:29
Show Gist options
  • Save erez-rabih/54c4578f21f3f4fb67da6130573260af to your computer and use it in GitHub Desktop.
Save erez-rabih/54c4578f21f3f4fb67da6130573260af to your computer and use it in GitHub Desktop.
s3 test
(deftest get-file-metadata-test
(let [example-metadata {:example "valid metadata"}]
(testing "should return file metadata in case file exists"
(with-redefs [s3/get-object (fn [& args] example-metadata)]
(is (= example-metadata (get-file-metadata "some-bucket" "some-file")))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment