Comments (8)
Hi!
Thanks for writing. I haven't used the streams myself, so I'm not that familiar with them. Is this something you can add tests for using the local DynamoDB, or do they only work on full version?
from faraday.
They work for the local version as well (small differences at the bottom of Usage Notes.
I'm not familiar with the test namespaces in farady, so I'm not sure how easy it is to write tests for this, but I can have a look
from faraday.
Thanks! Alternatively, as discussed on #101 we might just move away from expectations
, so I expect it'd be fine just having a namespace for these tests based on clojure.test
. I'll let @ptaoussanis chime in, though.
from faraday.
Ok, I created some tests at the end of main.clj.
Let me know if and how it needs to be improved.
from faraday.
Thanks Daniel, Ricardo!
so I expect it'd be fine just having a namespace for these tests based on clojure.test
My 2c: might suggest that we continue just using Expectations for everything for the moment, until everything gets migrated in one go. [Indeed, may never even happen since it's not urgent or particularly valuable].
Migrating between Expectations and clojure.test should be straight-forward if/when we choose to do it; probably even something we can do programatically.
Splitting tests between two tools (even temporarily) might cause more hassle than it's worth?
Thanks for checking about this though, was a totally reasonable possibility after our recent chat about the test situation.
Re: the PR in general-
Only had an opportunity to skim, but looks good to me in principle. @ricardojmendez How about you let me know when you're satisfied with the PR, and I'll give it one last look-over before we merge?
Really appreciate both your efforts, this looks like it'll be a valuable addition.
Cheers! :-)
from faraday.
Migrating between Expectations and clojure.test should be straight-forward if/when we choose to do it; probably even something we can do programatically.
Splitting tests between two tools (even temporarily) might cause more hassle than it's worth?
Playing devil's advocate, since I'm ambivalent myself about the idea of keeping two frameworks while transitioning:
- Splitting tests has a small, one-time cost: making sure both are run on the test script,
- Allowing people to contribute self-contained tests via
clojure.test
lowers the barrier of entry for contributors who might not be familiar with expectations, or who potentially don't want to wade through our current test monolith, - Contributors are more likely to be aware of the intention of their change than us, so it makes sense to minimize the odds of running into an issue when eventually migrating their tests.
Let me go over the PR later today.
from faraday.
Playing devil's advocate, [...]
Appreciate that, thanks. Will just note that migrating away from Expectations is low enough a priority that there's a significant chance it may never happen. Meaning that we may need to be okay with potentially being stuck with two test suites + tools moving forward.
Don't have a strong preference on this, happy for you to make the call.
from faraday.
Closing to focus on #108
from faraday.
Related Issues (20)
- Remove support for `:expected` HOT 3
- attribute_not_exists not respected consistently HOT 3
- missing ScanIndexForward option with far/scan HOT 1
- Request: custom keywordization routine HOT 3
- Is the scan function safe for large tables? HOT 7
- Upgrade to 1.11.16+ of aws-sdk-java for task-level IAM role support in AWS ECS HOT 9
- Add support for DynamoDB Transactions HOT 6
- Upgrade to 1.11.459 of aws-sdk-java for management of On Demand tables
- Upload all doc versions to http://taoensso.github.io/faraday/{version}
- Porting to AWS SDK v2 HOT 16
- missing page-size/max-result-size option with query HOT 1
- Support empty strings HOT 4
- not listing tables HOT 14
- Setting `region` in client-opts causes ClassCastException
- String index names cause type error HOT 3
- Local docker example from readme only with `-p 8000:8000` arg HOT 1
- Possibly confusing dependencies found HOT 3
- FYI: have pushed some superficial changes HOT 1
- Vulnerability CVE-2024-21634 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faraday.