mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed unit tests
This commit is contained in:
parent
4bf66ef031
commit
585bd0aab1
2 changed files with 10 additions and 6 deletions
|
@ -4,16 +4,19 @@
|
|||
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
|
||||
|
||||
trigger:
|
||||
- master
|
||||
- feature/v4
|
||||
- develop
|
||||
branches:
|
||||
include:
|
||||
- feature/*
|
||||
exclude:
|
||||
- develop
|
||||
- master
|
||||
|
||||
variables:
|
||||
solution: '**/*.sln'
|
||||
testProj: '**/*.Tests.csproj'
|
||||
csProj: '**/*.csproj'
|
||||
buildConfiguration: 'Release'
|
||||
publishLocation: '$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp2.2'
|
||||
publishLocation: '$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp3.0'
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
@ -27,7 +30,7 @@ steps:
|
|||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: |
|
||||
cd src/Ombi/bin/Release/netcoreapp2.2
|
||||
cd src/Ombi/bin/Release/netcoreapp3.0
|
||||
|
||||
ls
|
||||
workingDirectory: '$(Build.SourcesDirectory)'
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Security.Principal;
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using AutoFixture;
|
||||
using Hqub.MusicBrainz.API.Entities;
|
||||
using Moq;
|
||||
|
@ -172,7 +173,7 @@ namespace Ombi.Core.Tests.Engine.V2
|
|||
ApiKey = "dasdsa",
|
||||
Ip = "192.168.1.7"
|
||||
});
|
||||
_lidarrApi.Setup(x => x.GetArtistByForeignId(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>()))
|
||||
_lidarrApi.Setup(x => x.GetArtistByForeignId(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), CancellationToken.None))
|
||||
.ReturnsAsync(new ArtistResult
|
||||
{
|
||||
images = new Image[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue