mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 18:52:55 +08:00
Acquire api access for online tests
This commit is contained in:
parent
034345f1bd
commit
849ed0c69d
@ -14,6 +14,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
{
|
{
|
||||||
public class TestSceneMatchLeaderboard : MultiplayerTestScene
|
public class TestSceneMatchLeaderboard : MultiplayerTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
public TestSceneMatchLeaderboard()
|
public TestSceneMatchLeaderboard()
|
||||||
{
|
{
|
||||||
Room.RoomID.Value = 3;
|
Room.RoomID.Value = 3;
|
||||||
@ -27,11 +29,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved]
|
|
||||||
private IAPIProvider api { get; set; }
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(IAPIProvider api)
|
||||||
{
|
{
|
||||||
var req = new GetRoomScoresRequest();
|
var req = new GetRoomScoresRequest();
|
||||||
req.Success += v => { };
|
req.Success += v => { };
|
||||||
|
@ -12,6 +12,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneMultiScreen : ScreenTestScene
|
public class TestSceneMultiScreen : ScreenTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
typeof(Screens.Multi.Multiplayer),
|
typeof(Screens.Multi.Multiplayer),
|
||||||
|
@ -42,6 +42,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
typeof(BeatmapAvailability),
|
typeof(BeatmapAvailability),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
private RulesetInfo taikoRuleset;
|
private RulesetInfo taikoRuleset;
|
||||||
private RulesetInfo maniaRuleset;
|
private RulesetInfo maniaRuleset;
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
typeof(Comments),
|
typeof(Comments),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
@ -13,6 +13,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
private DirectOverlay direct;
|
private DirectOverlay direct;
|
||||||
|
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
@ -17,8 +17,9 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneHistoricalSection : OsuTestScene
|
public class TestSceneHistoricalSection : OsuTestScene
|
||||||
{
|
{
|
||||||
public override IReadOnlyList<Type> RequiredTypes =>
|
protected override bool RequiresAPIAccess => true;
|
||||||
new[]
|
|
||||||
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
typeof(HistoricalSection),
|
typeof(HistoricalSection),
|
||||||
typeof(PaginatedMostPlayedBeatmapContainer),
|
typeof(PaginatedMostPlayedBeatmapContainer),
|
||||||
|
@ -13,6 +13,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneSocialOverlay : OsuTestScene
|
public class TestSceneSocialOverlay : OsuTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
typeof(UserPanel),
|
typeof(UserPanel),
|
||||||
|
@ -17,6 +17,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
public class TestSceneUserProfileHeader : OsuTestScene
|
public class TestSceneUserProfileHeader : OsuTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
typeof(ProfileHeader),
|
typeof(ProfileHeader),
|
||||||
|
@ -19,6 +19,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneUserProfileOverlay : OsuTestScene
|
public class TestSceneUserProfileOverlay : OsuTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
private readonly TestUserProfileOverlay profile;
|
private readonly TestUserProfileOverlay profile;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
|
@ -18,6 +18,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneUserRanks : OsuTestScene
|
public class TestSceneUserRanks : OsuTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(DrawableProfileScore), typeof(RanksSection) };
|
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(DrawableProfileScore), typeof(RanksSection) };
|
||||||
|
|
||||||
public TestSceneUserRanks()
|
public TestSceneUserRanks()
|
||||||
|
@ -20,6 +20,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
public class TestSceneUpdateableBeatmapBackgroundSprite : OsuTestScene
|
public class TestSceneUpdateableBeatmapBackgroundSprite : OsuTestScene
|
||||||
{
|
{
|
||||||
|
protected override bool RequiresAPIAccess => true;
|
||||||
|
|
||||||
private BeatmapSetInfo testBeatmap;
|
private BeatmapSetInfo testBeatmap;
|
||||||
private IAPIProvider api;
|
private IAPIProvider api;
|
||||||
private RulesetStore rulesets;
|
private RulesetStore rulesets;
|
||||||
|
Loading…
Reference in New Issue
Block a user