Comments (3)
I too would appreciate this functionality.
from kerodon.
I'd take a PR for this if it isn't already part of peridot
from kerodon.
I think this is correct, though I haven't done a super deep dive on it. Here for anyone who wants it, eventually I'll add this to kerodon, or someone else can make a PR?
(defmacro header? [header-name expected]
`(ktest/validate =
(comp #(ring.util.response/get-header % ~header-name) :response)
~expected
(~'header? ~header-name ~expected)))
from kerodon.
Related Issues (20)
- `status?` fails because response doesn't contain a :status HOT 3
- Pressing buttons HOT 12
- Problem with ring-anti-forgery tests and 2 forms HOT 9
- Using follow with a String creates a ClassCastException HOT 1
- Handle matching text of HTML in anchor tags HOT 1
- Trouble with GET params and `follow-redirect` HOT 4
- Add support for labels that don't have for attributes HOT 5
- Browser-like treatment of whitespace in text HOT 6
- Exception when any a tag contains other tags HOT 2
- Cannot find a select element HOT 1
- Press button not working
- Input file array coerced incorrectly
- fill-in doesn't work for array input names HOT 4
- Can I use Kerodon for a non ring app? To test a external black box webapp... HOT 1
- Sending origin and referer headers HOT 2
- Enabling more flexible selectors
- Kerodon incorrectly uses query-string when submitting form HOT 1
- Update peridot to 0.5.4 (ring-anti-forgery error) HOT 2
- Consider dropping support for Clojure older than 1.7 HOT 1
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 kerodon.