Skip to content

Commit

Permalink
Update TesseractOcrTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ANcpLua authored Jan 15, 2025
1 parent 3365828 commit 6e81a19
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Tests/TesseractOcrTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Moq;
using Moq;
using PaperlessServices.TesseractOCR;
using Contract.Logger;

Expand All @@ -10,10 +10,6 @@ public class OcrTests
private Ocr _ocr = null!;
private Mock<IPaperlessLogger> _mockLogger = null!;
private readonly string _tessDataPath = null!;
private const string TestFileName = "HelloWorld.pdf";

private readonly string _testFilePath =
Path.Combine(TestContext.CurrentContext.TestDirectory, "EasyNetQTest", TestFileName);

[SetUp]
public void SetUp()
Expand All @@ -38,9 +34,4 @@ public void OcrPdf_EmptyStream_ShouldThrowException()
// Act & Assert
Assert.That(() => _ocr.OcrPdf(emptyStream), Throws.Exception);
}

private Stream CreateValidPdfStream()
{
return new FileStream(_testFilePath, FileMode.Open, FileAccess.Read);
}
}

0 comments on commit 6e81a19

Please sign in to comment.