Commit Graph

6 Commits

Author SHA1 Message Date
Corey McCandless
6135b7c005 rest-api: add test template (#1904) 2019-08-16 11:44:51 -04:00
AnAccountForReportingBugs
b5f3b32673 rest-api: update tests to v1.1.1
Fixes #1673
2019-03-07 17:54:27 -06:00
Ryan Palo
40cf709be3 Update rest_api_test.py get_single_user case (#1564)
In the [problem specification](https://github.com/exercism/problem-specifications/blob/master/exercises/rest-api/canonical-data.json) (as well as the [README](https://github.com/exercism/problem-specifications/blob/master/exercises/rest-api/description.md)), the GET `/users` endpoint is listed with a payload pattern:

```
{"users": ["Adam", "Bob"]}
```

The canonical tests reflect that pattern in the "one user" case:

```
{"users": ["Bob"]}
```

Note the presence of a list, even with only one user.  This seems correct to me because it makes a single user not a special case for the format of the payload, and no matter whether there's one or many users to GET, I can still do a `for user in users`.  The Python version of the test file was missing those square brackets.  So I added them.
2018-10-09 17:10:45 -05:00
Vasilis Gerakaris
6ccb6e1284 rest-api: update tests to v1.0.2 (#1561)
Simple version bump, since fd4cb7bd8f just changes an int to float. Fixes  #1553 .
2018-10-09 13:03:30 -05:00
omer-g
fa89abf2cf rest-api: Update exercise to v1.0.1 (#1544)
Change README.md to conform with latest canonical data.

Resolves #1521
2018-10-02 08:37:11 -04:00
Corey McCandless
65133219da rest-api: implement exercise (#1431)
* implement exercise, add to config.json

* add README
2018-08-03 15:32:01 -04:00