Created
June 3, 2019 06:29
-
-
Save erez-rabih/54c4578f21f3f4fb67da6130573260af to your computer and use it in GitHub Desktop.
s3 test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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