mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 16:11:10 +00:00
Temporarily narrows the test matrix for cover diagnostics
This commit is contained in:
1 parent
9b099cccc6
commit
114bfe94ff
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -66,8 +66,8 @@ public class UpdateBookCoverEndpointTests : IClassFixture<AuthenticatedLuminaApi
|
||||
HttpResponseMessage response = await _client.PutAsync($"/api/v1/books/{bookId}/cover", CreateCoverForm("cover.png"));
|
||||
|
||||
// Assert
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
string content = await response.Content.ReadAsStringAsync();
|
||||
Assert.True(response.StatusCode == HttpStatusCode.OK, $"Unexpected status {(int)response.StatusCode}: {content}");
|
||||
string storedPath = JsonSerializer.Deserialize<string>(content)!;
|
||||
Assert.False(string.IsNullOrWhiteSpace(storedPath));
|
||||
Assert.Contains("cover.png", storedPath, StringComparison.OrdinalIgnoreCase);
|
||||
@@ -92,8 +92,8 @@ public class UpdateBookCoverEndpointTests : IClassFixture<AuthenticatedLuminaApi
|
||||
HttpResponseMessage response = await _client.PutAsync($"/api/v1/books/{bookId}/cover", CreateCoverForm("cover.png"));
|
||||
|
||||
// Assert
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
string content = await response.Content.ReadAsStringAsync();
|
||||
Assert.True(response.StatusCode == HttpStatusCode.OK, $"Unexpected status {(int)response.StatusCode}: {content}");
|
||||
string storedPath = JsonSerializer.Deserialize<string>(content)!;
|
||||
Assert.False(string.IsNullOrWhiteSpace(storedPath));
|
||||
|
||||
|
||||
Reference in new issue
Block a user